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.
bayhaqi:9947

[Machine] About the Prophet ﷺ , he said in the hadith, "It is not permissible for a person who believes in Allah and the Last Day to shed blood with it (referring to a tree) or support a tree with it." Ali ibn Ahmad ibn Abdan narrated to us that Ahmad ibn Ubaid narrated to us from Ahmad ibn Ibrahim ibn Milhan who narrated from Yahya who narrated from Al-Layth from Sa'id Al-Maqburi from Abu Shurayh. They mentioned it in the authentic hadith from Qutaybah from Al-Layth.  

البيهقي:٩٩٤٧وَرَوَاهُ أَبُو شُرَيْحٍ الْخُزَاعِيُّ

عَنِ النَّبِيِّ ﷺ فَقَالَ فِي الْحَدِيثِ فَلَا يَحِلُّ لِامْرِئٍ يُؤْمِنُ بِاللهِ وَالْيَوْمِ الْآخِرِ أَنْ يَسْفِكَ بِهَا دَمًا وَلَا يَعْضِدَ بِهَا شَجَرَةً أَخْبَرَنَاهُ عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنا أَحْمَدُ بْنُ عُبَيْدٍ ثنا أَحْمَدُ بْنُ إِبْرَاهِيمَ بْنِ مِلْحَانَ ثنا يَحْيَى ثنا اللَّيْثُ عَنْ سَعِيدٍ الْمَقْبُرِيِّ عَنِ أَبِي شُرَيْحٍ أَخْرَجَاهُ فِي الصَّحِيحِ عَنْ قُتَيْبَةَ عَنِ اللَّيْثِ