James 4:3 You ask and do not receive, because you ask amiss [with wrong motives], that you may consume it upon your pleasures.
Do you ever wonder why it is that sometimes we don't get the things we pray for? James hits it on the nail when he says that we ask amiss, that we may consume it upon our pleasures.
Think about this. You work for a large company such as, let's say, IBM. You've been with them for quite some time and been faithful and dilligent to do what's been required of you. You've gained some trust and seniority. One day, the boss decides to give you access to the company card, should you ever need it, trusting that if you'll use it, you'll be using it to purchase something for the good of the company.
We who know Yeshua (Jesus) are in God's company -- and we have been entrusted with the company card! When we swipe that card and ask for that thing in the name of Yeshua, we will get it --- as long as it will benefit the company!
Is that thing for which you've been praying going to benefit the Kingdom? If so, then pray in faith! God will do it! If not, let's ask God to help us know how to pray today!