Regarding this question, we’d like to quote Sheikh M. S. Al-Munajjid who stated:

“Imam Ibn al-Qayyim (may Allah have mercy on him) said:

Du`a’s and ta`awwudhat [prayers and seeking refuge with Allah] are like a weapon, and a weapon is only as good as the person who is using it; it is not merely the matter of how sharp it is. If the weapon is perfect and free of faults, and the arm of the person using it is strong, and there is nothing stopping him, then he can lay waste the enemy. But if any of these three features is lacking, then the effect will be lacking accordingly.” (Ad-Da’ wa-d-Dawa’, p. 35).

From this, it will be clear that there is an etiquette and rulings that must be fulfilled in the du`a’ and in the person making the du`a’. There are also things that may prevent the du`a’ from being answered. These things must be avoided by the person making the du`a’ and must also be removed from the du`a’. When all those things are observed and all conditions are fulfilled, then the du`a’ may be answered.

1. Sincerity in making du`a’. This is the most important condition. Allah has commanded us to be sincere when making du`a’, as He says: “ Therefore (O believers) pray unto Allah, making religion pure for Him (only), however much the disbelievers be averse.” (Ghafir 14)

Sincerity in du`a’ means having the firm belief that the One upon Whom you are calling – Allah, may He be glorified and exalted – is alone able to meet your need, and it also means avoiding any kind of showing off in your du`a’.

2. Repentance and turning back to Allah. Sin is one of the main reasons why du`a’s are not answered, so the person who is making du`a’ should hasten to repent and seek forgiveness before he makes du`a’. Allah tells us that prophet Nuh (peace be upon him) said:

“And I have said: Seek pardon of your Lord Lo! He was ever Forgiving. He will let loose the sky for you in plenteous rain, and will help you with wealth and sons, and will assign unto you Gardens and will assign unto you rivers.” (Nuh 10-12)

3. Beseeching, humbling oneself, hoping for Allah’s reward and fearing His punishment. This is the spirit, essence and purpose of du`a’. Allah says: “(O mankind!) Call upon your Lord humbly and in secret. Lo! He loveth not aggressors.” (Al-A`raf 55)

4. Urgently beseeching and repeating the du`a’, without getting exasperated or bored; this is achieved by repeating the du`a’ two or three times. Restricting it to three times is preferable, in accordance with the Sunnah of the Prophet (peace and blessings of Allah be upon him). Ibn Mas`ud (may Allah be pleased with him) narrated that the Prophet (peace and blessings of Allah be upon him) liked to say a du`a’ three times and ask for forgiveness three times. This was narrated by Abu Dawud and al-Nasa’i.

5. Making du`a’ at times of ease, and saying more du`a’s at times of plenty (of wealth). The Prophet (peace and blessings of Allah be upon him) said: “Remember Allah during times of ease and He will remember you during times of hardship.” (Reported by Ahmad)

6. Seeking to get closer to Allah by calling upon Him by His Most Beautiful Names and Sublime Attributes at the beginning of the du`a’ or at the end. Allah says: “And (all) the Most Beautiful Names belong to Allah, so call on Him by them…” (Al-A`raf 180)

7. Choosing clear and most concise words and the best of du`a’s. The best of du`a’s are those of the Prophet (peace and blessings of Allah be upon him), but it is permissible to say other words according to the specific needs of a person.

Other aspects of the etiquette of making du`a’, although they are not obligatory, include: to facing the Qiblah; making du`a’ in a state of purity; starting the du`a’ with praise of Allah and blessings upon the Prophet (peace and blessings of Allah be upon him). It is also prescribed to raise the hands when making du`a’.

One of the things that helps to bring a response to du`a’ is to seek the best times and places. Among the best times is the time just before Fajr (dawn), the last third of the night, the last hour of Jumu`ah (Friday), when rain is falling, and between the adhan and iqamah. Among the best places are; mosques in general, and al-Masjid al-Haram [in Makkah] in particular.

Among the situations in which du`a’ is more likely to be answered are: when one is mistreated or oppressed, when one is traveling, when one is fasting, when one is in desperate need, and when a Muslim makes du`a’ for his brother in his absence.

Things which may prevent du`a’ from being answered include:

1. When the du`a’ is weak in itself, because it involves something inappropriate, or involves bad manners towards Allah, may He be exalted, or it is inappropriate, which means asking Allah for something which is not permitted to ask, e.g. when a man asks to live forever in this world, or he asks for a sin or something haram, or he prays for death with no justified reason, and so on.

Abu Hurayrah (may Allah be pleased with him) reported that the Messenger of Allah (peace and blessings of Allah be upon him) said: “A person’s du`a’ will continue to be answered so long as he does not pray for something sinful or for the breaking of family ties.” (Reported by Muslim)

2. When the person who is making du`a’ is weak in himself, because he is faint-hearted in his turning towards Allah. This may be either because of bad manners towards Allah, may He be exalted – such as raising his voice in du`a’ or making du`a’ in the manner of one who thinks he has no need of Allah; or because he pays too much attention to the wording and tries to come up with unnecessarily ornate phrases, without paying attention to the meaning; or because he tries too hard to weep or shout without really feeling it, or he goes to extremes in that.

3. The reason why the du`a’ is not answered could be because a person has done something that Allah has forbidden, such as having unlawful wealth – be it food or drink or clothing or accommodation or transportation, or he has taken an unlawful job, or the stain of sin is still in his heart, or he is following bid`ah (innovation) in religion, or his heart has been overtaken by negligence.

4. Consuming unlawful wealth. This is one of the major reasons why du`a’s are not answered. Abu Hurayrah (may Allah be pleased with him) reported that the Messenger of Allah (peace and blessings of Allah be upon him) said:

“O people, Allah is Good and only accepts that which is good. Allah commanded the pious to follow the same commandments as He gave to the Messengers. He says: ‘O you messengers! Eat of the good thing, and do right. Lo! I am Aware of what you do.’ (Al-Mu’minun 51) ‘O you who believe! Eat of the good things wherewith We have provided you, and render thanks to Allah if it is (indeed) He whom you worship.’ (Al-Baqarah 172) Then he mentioned a man who has traveled on a long journey and is disheveled and covered with dust; he stretches forth his hands to the heaven, (saying) “O Lord, O Lord”, but his food is haram (unlawful), his drink is haram, all his nourishment is haram, so how can his du`a’ be accepted?” (Reported by Muslim)

The man described by the Prophet (peace and blessings of Allah be upon him) had some of the characteristics which help du`a’s to be answered – he was traveling and he was in need of Allah, may He be exalted and glorified – but the fact that he consumed haram wealth prevented his du`a’ from being answered. We ask Allah to keep us safe and sound.

5. Trying to hasten the response. Abu Hurayrah (may Allah be pleased with him) said: the Messenger of Allah (peace and blessings of Allah be upon him) said: “The du`a’ of any one of you will be answered so long as he is not impatient and says, ‘I made du`a’ but it was not answered.’” (Reported by al-Bukhari and Muslim)

6. Making the du`a’ conditional, such as saying, “O Allah, forgive me if You will” or “O Allah, have mercy upon me if You will.” The person who makes du`a’ has to be resolute in his supplication, striving hard and earnestly repeating his du`a’. The Prophet (peace and blessings of Allah be upon him) said: “Let not any one of you say, ‘O Allah, forgive me if You will, O Allah, have mercy on me if You will.’ Let him be resolute in the matter, whilst knowing that no one can compel Allah to do anything.” (Reported by al-Bukhari and Muslim)

In order for du`a’ to be answered, it is not essential to adhere to all of these points and be free of all that could prevent one’s du`a’ from being answered. That is something which happens very rarely. But one has to try hard and strive towards achieving this.

Another important point is to realize that the response to the du`a’ may take different forms: Allah may respond and fulfill the desire of the person who made the du`a’,  He may ward off some evil from him because of the du`a’, He may make something good easy for him to attain because of it, or save it with Him for him on the Day of Resurrection when he will be most in need of it.”