All in Praying God’s Will

When we pray and do not receive it can be because we are meant to wait, but many times it is because our motives are not right, and we are not praying for those things that are in accordance with the will of God. When we are preparing to ask Him for something have we examined our own desires, and insured that we are not asking out of our selfish earthly vanities, or wants? Are we asking as we should for something meant to glorify God? Are we praying rightly?