Duas(prayer) of a
fasting person
The Messenger of Allah Muhammad [Peace be upon him] is reported to have said:
Another Hadith states that on the day of "Qiyaamah", Allah will call his servant, and say to him: "O my servant, I used to command you to ask of Me and promised to answer. Did you beg of Me? The servant will answer: "Yes I did." Then Allah shall reply: "You did not put forth any prayer which has not been accepted. You prayed that a certain calamity should be removed, which I did for you in the wordly life. You prayed that a certain sorrow should be cast off you, but result of that prayer was not known to you. For that, I fixed for you such and such a reward in the Hereafter. Rasulullah (Sallallaho alaihi wasallam) says that the man shall again be reminded of each and every prayer and he shall be shown how it had been fulfilled in the world or else what reward had been stored for him in the Hereafter. On seeing that reward, he shall wish that not a single prayer of his had heen answered on Earth, so that he could receive the full reward only in the Hereafter.
Yes, prayer is indeed very important, and to neglect it at any time is a matter of great loss. Even when the outward signs seem to indicate that our prayer is not answered, hope should not be lost. It is clear that Allah in answering prayers considers first of all our own good and welfare. Should Allah find that granting us what we beseech from Him is in our welfare and interest, He grants it, otherwise not. Actually it is Allah's favour on us that we do not always get what we ask for because very often, due to our lack of understanding, we beg for things that are not beneficial at a particular time.