The Prophet (ﷺ) said, "I was in a seclusion in the cave of Hira........."(similar to the narration related by `Ali bin Al-Mubarak, 444 above).
Sahih al-Bukhari Book 65, Hadith 443