James 4:3

Amplified Bible (AMP)
You ask [God for something] and do not receive it, because you ask [d]with wrong motives [out of selfishness or with an unrighteous agenda], so that [when you get what you want] you may spend it on your [hedonistic] desires.

Read James 4:3 in other translations