[Machine] The Messenger of Allah ﷺ said, "Whoever wishes to have his supplication answered during times of difficulty and hardship, then let him increase his supplication in times of ease." This hadith has a strong chain of narration, and al-Bukhari referred to it with Abu Salih and Abu 'Amir al-Alhani, and I believe it is al-Hawzani, and he is truthful.
قَالَ رَسُولُ اللَّهِ ﷺ «مَنْ سَرَّهُ أَنْ يُسْتَجَابَ لَهُ عِنْدَ الْكَرْبِ وَالشَّدَائِدِ فَلْيُكْثِرِ الدُّعَاءَ فِي الرَّخَاءِ» «حَدِيثٌ صَحِيحُ الْإِسْنَادِ احْتَجَّ الْبُخَارِيُّ بِأَبِي صَالِحٍ وَأَبُو عَامِرٍ الْأَلْهَانِي أَظُنُّهُ الْهَوْزَنِيُّ وَهُوَ صَدُوقٌ»