It was the practice of the Prophet (peace and blessings be upon him):
"When news that pleased him came to him (peace and blessings be upon him), he (peace and blessings be upon him) would fall down in prostration in gratitude to Allah Almighty."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4701