Abdul-Rahman bin Abdullah bin Masud reported,

I asked Masruq, "Who informed the Prophet ﷺ about the jinn on the night they listened to the Quran?"He replied, "Your father, meaning Ibn Masud, told me that a tree informed him of their presence."

Muslim 1011

Sahih

حدثنا سعيد بن محمد الجرمي وعبيد الله بن سعيد قالا حدثنا أبو أسامة عن مسعر

عن معن قال سمعت أبي قال

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

مسلم 1011صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Reciting aloud in the fajr prayer and reciting to the jinn
Numbering
Darussalam 1011
Muslim 1011