Sahih Bukhari – Hadith No : 3907

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.’ ”

Hadith In Arabic Text :

حدثني عبيد الله بن سعيد، حدثنا أبو أسامة، حدثنا مسعر، عن معن بن عبد الرحمن، قال سمعت أبي قال، سألت مسروقا من آذن النبي صلى الله عليه وسلم بالجن ليلة استمعوا القرآن‏.‏ فقال حدثني أبوك يعني عبد الله أنه آذنت بهم شجرة‏.‏

Chapter : Merits of the Helpers in Madinah (Ansaar) – كتاب مناقب الأنصار