It is reported from Aysha radi allahu anha that she said,
When the Prophet sallallahu alayhe wa sallam used to see what he likes, he would say, Alhamdulillah allathee beni'matihi tatimma ath-solihat الحمد لله الذي بنعمته تتم الصالحات [All praises be to Allah by whose blessing the righteous (deed) is completed] and if he saw what he dislikes, he would say, Alhamdulillahi 'ala kulli hal الحمد لله على كل حال [All praises be to Allah at all conditions]."
[Ath-Sdohiha of Shaykh Albanee : 265]