Narrated 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
Opening the collection...
“Read in the name of your Lord who created.” 96:1
“My Lord, increase me in knowledge.” 20:114
“So remember Me; I will remember you.” 2:152
“Indeed, with hardship comes ease.” 94:6