Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:3859ʿUbaydullāh b. Saʿīd > Abū Usāmah > Misʿar > Maʿn b. ʿAbd al-Raḥman from my father

"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.' "  

البخاري:٣٨٥٩حَدَّثَنِي عُبَيْدُ اللَّهِ بْنُ سَعِيدٍ حَدَّثَنَا أَبُو أُسَامَةَ حَدَّثَنَا مِسْعَرٌ عَنْ مَعْنِ بْنِ عَبْدِ الرَّحْمَنِ قَالَ سَمِعْتُ أَبِي قَالَ

سَأَلْتُ مَسْرُوقًا مَنْ آذَنَ النَّبِيَّ ﷺ بِالْجِنِّ لَيْلَةَ اسْتَمَعُوا الْقُرْآنَ فَقَالَ حَدَّثَنِي أَبُوكَ يَعْنِي عَبْدَ اللَّهِ أَنَّهُ آذَنَتْ بِهِمْ شَجَرَةٌ  


See similar narrations below:

Collected by Muslim
muslim:450eSaʿīd b. Muḥammad al-Jarmī And ʿUbayd Allāh b. Saʿīd > Abū Usāmah > Misʿar > Maʿn from my father

I asked Masruq who informed the Messenger of Allah ﷺ about the night when they heard the Qur'an. He said: Your father, Ibn Mas'ud, narrated it to me that a tree informed him about that.  

مسلم:٤٥٠eحَدَّثَنَا سَعِيدُ بْنُ مُحَمَّدٍ الْجَرْمِيُّ وَعُبَيْدُ اللَّهِ بْنُ سَعِيدٍ قَالاَ حَدَّثَنَا أَبُو أُسَامَةَ عَنْ مِسْعَرٍ عَنْ مَعْنٍ قَالَ سَمِعْتُ أَبِي قَالَ

سَأَلْتُ مَسْرُوقًا مَنْ آذَنَ النَّبِيَّ ﷺ بِالْجِنِّ لَيْلَةَ اسْتَمَعُوا الْقُرْآنَ فَقَالَ حَدَّثَنِي أَبُوكَ يَعْنِي ابْنَ مَسْعُودٍ أَنَّهُ آذَنَتْهُ بِهِمْ شَجَرَةٌ