218
On receiving something pleasing, say the first; on something displeasing, the second:
الْحَمْدُ لِلَّهِ الَّذِي بِنِعْمَتِهِ تَتِمُّ الصَّالِحَاتُ. الْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ
Al-hamdu lillahil-ladhi bini'matihi tatimmus-salihat. al-hamdu lillahi 'ala kulli hal
All praise is for Allah, by whose favour good things are accomplished. — All praise is for Allah in every circumstance.
Source Sunan Ibn Mājah 3803 Ḥasan
Compiler cites Ibn as-Sunnī ('Amal al-Yawm wa'l-Laylah); al-Ḥākim 1/499 (graded ṣaḥīḥ); al-Albānī graded it ṣaḥīḥ in Ṣaḥīḥ al-Jāmiʿ 4/201