This belief causes millions of people to throng to temples throughout the country. The belief is that God(specifically Lord Vishnu) does grant to those who pray to Him whatever they ask for as long as it is righteous. However, my question is whether this belief is supported by scriptures, or teachings of acharyas. Please provide any quotes from scriptures if there are any.
EDIT: This question has been wrongly marked a duplicate of another question. This question asks if God grants us our wishes and what is the support for that in the scriptures, while the other question asks about what is his motive for granting our wishes which is not the topic of this question.