When anything came to the Prophet (ﷺ) which caused pleasure (or, by which he was made glad), he prostrated himself in gratitude to Allah.
Sunan Abi Dawud Book 15, Hadith 298