The Prophet ﷺ would prostrate in gratitude to Allah تبارك و تعالى upon receiving news which pleased him or which caused pleasure.