Ibn Rajab al-Hanbali (may Allah have mercy on him) said: It was narrated that ‘Umar Ibn al-Khattaab (may Allah be pleased with him) said: By avoiding that which Allah has forbidden, Allah will accept du’aa’ and tasbeeh. And it was narrated that Abu Dharr (may Allah be pleased with him) said: “The amount of du’aa’ with righteousness that is sufficient is like the amount of salt that is sufficient with food.” And Muhammad ibn Waasi’ said: A little du’aa’ is sufficient with piety.
One of the salaf said: Do not expect a response when you have blocked the way with sins. One of the poets also commented on this by saying:
We call upon Allah for every hardship, then we forget Him when the hardship is relieved.
How can we hope for an answer to our du`as, when we have blocked its way with sins?
Jaami’ al-‘Uloom wa’l-Hukam (1/107, 108).
islamqa.info
One of the salaf said: Do not expect a response when you have blocked the way with sins. One of the poets also commented on this by saying:
We call upon Allah for every hardship, then we forget Him when the hardship is relieved.
How can we hope for an answer to our du`as, when we have blocked its way with sins?
Jaami’ al-‘Uloom wa’l-Hukam (1/107, 108).

Unanswered Du`as – A Test of Faith and Trust - Islam Question & Answer
<p>5 Reasons Why Du`as May Be Delayed</p> <ol> <li>A test of sincerity and patience</li> <li>Protection from potential harm</li> <li>A greater reward in the Hereafter</li> <li>Timing isn’t right – Allah’s wisdom prevails</li> <li>The Du`a itself may not be best for you</li> </ol>
