It was narrated from Anas bin Malik that the Prophet (ﷺ) was given glad tidings that a need of his had been met, and he fell down prostrate.
Sunan Ibn Majah Book 5, Hadith 590