However, pay heed with an attentive heart that there are certain preconditions for the acceptance of prayer. Some of them relate to the person making the supplication and some relate to the person for whom supplication is made. It is necessary for a person who solicits someone else to pray for them to first fear Allah Almighty themselves; such people must remain in awe of God’s Being as He is the Independent and Besought of all; they must make peaceful relations and worship of God a practice of life; they must please Allah with righteousness and piety. When this is the case, the gate of the acceptance of prayer is opened to such a one. If a person displeases God Almighty, ruins his relationship with Him and wars with Him, his mischief and evil deeds become an obstruction or a mountain that stands in the way of prayer. As a result, the door of acceptance is closed to such a person.
(Hazrat Mirza Ghulam Ahmadas, Malfuzat, Vol. 1, p. 104)