Jami` at-Tirmidhi #3382
Chapters on Supplication 48:13
Abu Hurairah [may Allah be pleased with him] 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.”