judging by your thread title, you've read James 4:3
" Ye ask, and receive not, because ye ask amiss, that ye may consume it upon your lusts."
are you asking if this verse is true or not?
or how to ask rightly?
the answer to that i think is in v. 7-10
" Submit yourselves therefore to God. Resist the devil, and he will flee from you. Draw nigh to God, and he will draw nigh to you. Cleanse your hands, ye sinners; and purify your hearts, ye double minded. Be afflicted, and mourn, and weep: let your laughter be turned to mourning, and your joy to heaviness. Humble yourselves in the sight of the Lord, and he shall lift you up . "