Hadith 1494

(This chapter does not contain sections I and III) Abu Bakra said that when anything came to God’s Messenger which caused pleasure (or, by which he was made glad), he prostrated himself in gratitude to God most high. Abu Dawud and Tirmidhi transmitted it, the latter saying this is a hasan gharib tradition.

عَنْ أَبِي بَكْرَةَ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا جَاءَهُ أَمْرٌ سُرُورًا أَوْ يُسَرُّ بِهِ خَرَّ سَاجِدًا شَاكِرًا لِلَّهِ تَعَالَى. رَوَاهُ أَبُو دَاوُدَ وَالتِّرْمِذِيُّ وَقَالَ: هَذَا حَدِيثٌ حسن غَرِيب

Reference: 5614940
In-book reference: Book 4, Hadith 1494
Hadith 1494 - Prayer - Mishkat al-Masabih - Sunnah.com