«كان إذا رأى ما يحب قال: الحمد لله الذي بنعمته تتم الصالحات وإذا رأى ما يكره قال: الحمد لله على كل حال ... ...»
It was the practice of the Prophet (peace and blessings be upon him):
"When he (peace and blessings be upon him) saw something he liked, he would say: 'Alhamdu lillahil-ladhi bi-ni'matihi tatimmus-salihat' (All praise is for Allah, by whose favour good deeds are completed), and when he saw something he disliked, he would say: 'Alhamdu lillahi 'ala kulli hal' (All praise is for Allah in every circumstance)."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4727
Hadith Gradingالألبانی:صحيح
Hadith Takhrij[هـ] عن عائشة. الكلم ١٣٩، الصحيحة ٢٦٥.