Fortress of the Muslim
Hisn al-Muslim 218
Arabic hadith text
كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا أَتَاهُ الْأَمْرُ يَسُرُّهُ قَالَ: (الْحَمْدُ لِلَّهِ الَّذِي بِنِعْمَتِهِ تَتِمُّ الصَّالِحَاتُ) وَإِذَا أَتَاهُ الْأَمْرُ يَكْرَهُهُ قَالَ: (الْحَمْدُ لِلَّهِ عَلَى كُلِّ حَالٍ)
Translation
When something that pleased him occurred, the Prophet, peace and blessings be upon him, would say: “Praise be to Allah, by whose favor good deeds are completed.” When something he disliked occurred, he would say: “Praise be to Allah in every circumstance.”