From Sahih Bukhari (Hadith 3859):
Narrated `Abdur-Rahman:"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
Reference: Bukhari 3859