In times of tribulation and in times of ease
Whoever is in a state of receiving favours, it is obligatory upon him to show sabr (patience) and shukr, sabr from disobedience.
Whoever is in a state of trial, it is also obligatory upon im to show sabr and shukr, shukr by establishing the rights of Allaah during the trial.
Indeed servitude is due to Allah in times of tribulation and in times of ease. -Ibn Hajr (Rahinahullah)
(Source: Fath Al-Baaree, 11/311)