The Prophet (saw) would prostrate in gratitude to Allah (swt) upon receiving news which pleased him or which caused pleasure.
What to do upon receiving pleasant news
The Prophet (saw) would prostrate in gratitude to Allah (swt) upon receiving news which pleased him or which caused pleasure.