"I asked Masruq, 'Who informed the Prophet (ﷺ) about the Jinns at the night when they heard the Qur'an?' He said, 'Your father `Abdullah informed me that a tree informed the Prophet (ﷺ) about them.' "
Sahih al-Bukhari Book 63, Hadith 84