Belief necessitates supplication as a certain means of securing needs, and both human nature has an intense desire for it, and Almighty God decrees,
Say: My Sustainer would not concern Himself with you hut for your supplication,6
which has the meaning of: What importance would you have if you did not offer Me supplications? He also commands:
Call upon Me and I will answer you.7
If you say: We frequently offer supplications, but they are not accepted. But the verse is general, it states that every supplication is answered.
The Answer: To answer is one thing, to accept is something quite different. Every supplication is answered, but its being accepted and exactly what was sought being given is dependent on Almighty God's wisdom. For example, if a sick child calls the doctor, saying: "Doctor! Doctor!", and he replies: "Here I am, what do you want?", and the child says: "Give me that medicine!", the doctor will either give him exactly what he asks for or something better and more beneficial for him. Or knowing that medicine is harmful for his illness, he will give him nothing.
Thus, since Almighty God is all-present and all-seeing, He responds to the supplications of His servants. Through His presence and response, He transforms the desolation of loneliness and solitude into familiarity. But He does this, not in accordance with man's capricious and importunate demands, but in accordance with the requirements of dominical wisdom; He gives either what is sought or what is better than it, or He gives nothing at all.
--------------------------
7.Qur'an, 40:60.