God is not a vending machine and we will receive what God sees as best for our eternal souls, not grant us our worldly wishes.
God is Our loving Father and He tells us that we must pray without ceasing; from prayers of adoration and thanksgiving to prayers of petition and reparation for all sorts of things; many things that God will grant us are dependent upon us specifically asking for them; so don’t be afraid to ask, and ask big, but always ask for what is good, especially good for your soul; some things will only be granted if you ask for them; God may very well grant it; but if you don’t pray for it, then those things may never come your way, it’s just that simple. Jesus always prayed before he did anything, thus we must also. For example, that’s why you pray for a safe trip,
or to find a job, thus Jesus said: ASK and you will receive, SEEK and you will find, KNOCK and the door will be opened to you. The problem is maybe at people don’t have trust and are afraid to God is not listening.
Paul prayed and asked for his thorn to be removed, and God said “no” in his particular case for him to remain humble; asking for graces for purity of mind is not a bad thing nor is it treating God like a “vending machine” . There are plenty of prayers for purity of mind; thus if one has a strong unbearable attraction toward immoral thoughts, pornography etc. you do well to pray for purity and a mindset that sees men and women as children of God, not bodies to lust at…
“Then Jesus said to them, “Suppose you have a friend, and you go to him at midnight and say, ‘Friend, lend me three loaves of bread; 6a friend of mine on a journey has come to me, and I have no food to offer him.’ And suppose the one inside answers, ‘Don’t bother me. The door is already locked, and my children and I are in bed. I can’t get up and give you anything.’ I tell you, even though he will not get up and give you the bread because of friendship, yet because of your shameless audacitye he will surely get up and give you as much as you need.
“So I say to you: Ask and it will be given to you; seek and you will find; knock and the door will be opened to you. For everyone who asks receives; the one who seeks finds; and to the one who knocks, the door will be opened.
“Which of you fathers, if your son asks forf a fish, will give him a snake instead? Or if he asks for an egg, will give him a scorpion? If you then, though you are evil, know how to give good gifts to your children, how much more will your Father in heaven give the Holy Spirit to those who ask him!”- Luke 11:5-11