KNOW THAT IT is mustaḥabb, when a manifest favour is renewed or misfortune repelled, to prostrate in thanks to Allah and to praise and extol Allah as He deserves. The hadiths and narrations about this are many and well-known.
We relate in the Ṣaḥīḥ of al-Bukhārī that ‘Amr ibn Maymūn (رَضِيَ اللَّهُ عَنْهُ), narrating the long hadith about the assassination of ‘Umar ibn al-Khaṭṭāb (رَضِيَ اللَّهُ عَنْهُ), said that ‘Umar (رَضِيَ اللَّهُ عَنْهُ) sent his son ‘Abdullāh (رَضِيَ اللَّهُ عَنْهُ) to ‘Ā’ishah (رَضِيَ اللَّهُ عَنْهَا) asking her permission to be buried with his two [dearest] companions. When ‘Abdullāh (رَضِيَ اللَّهُ عَنْهُ) came back, ‘Umar asked “What have you got?” He replied, “That which you will like, Leader of the Believers. She gave permission.” He said: “Praise be to Allah! There was nothing more important to me than that.” [1].
References
[1] Al-Bukhārī (3700).