Jami` at-Tirmidhi 1578
جامع الترمذي#1578HasanNarrated Abu Bakrah: "The Prophet (ﷺ) was met by some affair that made him happy, so he prostrated to Allah." [Abu 'Eisa said:] This Hadith is Hasan Gharib, we do not know of it except from this route, as a narration of Bakkar bin 'Abdul-'Aziz. This is acted upon according to most of the people of knowledge, they held the view that one could perform the prostration of gratitude. And Bakkar bin 'Adbul-'Aziz bin Abi Bakrah is Muqarib (average) in Hadith
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Ahmad Muhammad ShakirHasan
Al-AlbaniHasan
Bashar Awad MaaroufHasan
Zubair Ali ZaiIsnaad Hasan
In-book reference: 21:39