Sunan Abi Dawud, Book 15, Hadith 298 (Abu Dawud 2775)

Narrated AbuBakrah:

When anything came to the Prophet (ﷺ) which caused pleasure (or, by which he was made glad), he prostrated himself in gratitude to Allah.