((كَانَ النَّبيُّ صلى الله عليه وسلم إِذَا أَتَاهُ أَمْرٌ يَسُرُّهُ أَوْ يُسَرُّ بِهِ خَرَّ سَاجِداً شُكْراً لِلَّهِ تَبَارَكَ وَتَعَالَى)).
Translation
(The Prophet PBUH would prostrate in gratitude to Allah upon receiving news which pleased him or which caused pleasure. )
Source
Hisnul Muslim (Fortress of the Muslim), No. 242 — chapter “What to say when something that pleases you happens”. hisnmuslim.com
Related Duas
((إِذَا عَطَسَ أَحَدُكُم فَلْيَقُلِ الْحَمْدُ لِلَّهِ، وَلْيَقُلْ لَهُ أَخُوهُ أَوْ صَاحِبُهُ: يَرْحَمُكَ اللَّهُ، فَإِذَا قَالَ لَهُ: يَرحَمُكَ اللَّهُ، فَلْيَقُلْ: يَهْدِيكُمُ اللَّهُ وَيُصْلِحُ بَالَكُمْ)).
(When one of you sneezes he should say:(All praise if for Allah.) and his brother or companion should say to him: (May Allah have mercy upon you.) and he (i.e. the one who sneezed) replies back to him:(May Allah guide yo…
Hisnul Muslim · No. 188
((يَهْدِيكُمُ اللَّهُ وَيُصْلِحُ بَالَكُمْ)).
(May Allah guide you and rectify your condition.)
Hisnul Muslim · No. 189
((أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ)).
(I take refuge with Allah from the accursed devil.)
Hisnul Muslim · No. 193

