Jami` at-Tirmidhi, Book 48, Hadith 13 (Tirmidhi 3466)

Abu Hurairah narrated that:

The Messenger of Allah said: “Whoever wishes that Allah would respond to him during hardship and grief, then let him supplicate plentifully when at ease.”