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.
muslim:2794cAbū Saʿīd al-Ashaj > ʿAbdullāh b. Idrīs > al-Aʿmash Yarwīh > ʿAbdullāh b. Murrah > Masrūq > ʿAbdullāh

Abdullah reported that Allah's Apostle ﷺ was reclining against a tree in the garden. The rest of the hadith is the same with a slight variation of wording.  

مسلم:٢٧٩٤cحَدَّثَنَا أَبُو سَعِيدٍ الأَشَجُّ قَالَ سَمِعْتُ عَبْدَ اللَّهِ بْنَ إِدْرِيسَ يَقُولُ سَمِعْتُ الأَعْمَشَ يَرْوِيهِ عَنْ عَبْدِ اللَّهِ بْنِ مُرَّةَ عَنْ مَسْرُوقٍ عَنْ عَبْدِ اللَّهِ قَالَ

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