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:9931[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-Walīd > ʿAbdullāh b. Muḥammad > Abū Kurayb > Abū Muʿāwiyah [Chain 2] Abū al-Ḥasan ʿAlī b. Muḥammad al-Muqriʾ > al-Ḥasan b. Muḥammad b. Isḥāq > Yūsuf b. Yaʿqūb > Abū Mūsá > Abū Muʿāwiyah > al-Aʿmash > Ḥabīb > Saʿīd b. Jubayr > Ibn ʿAbbās

[Machine] The difficult Ibn Jathama gave the Prophet ﷺ a wild donkey as a gift, while it is prohibited to accept. The Prophet ﷺ returned it and said, "If it were not for the fact that we are prohibited, we would have accepted it from you."  

البيهقي:٩٩٣١أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أَخْبَرَنِي أَبُو الْوَلِيدِ ثنا عَبْدُ اللهِ بْنُ مُحَمَّدٍ ثنا أَبُو كُرَيْبٍ ثنا أَبُو مُعَاوِيَةَ ح وَأنا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدٍ الْمُقْرِئُ أنا الْحَسَنُ بْنُ مُحَمَّدِ بْنِ إِسْحَاقَ ثنا يُوسُفُ بْنُ يَعْقُوبَ ثنا أَبُو مُوسَى ثنا أَبُو مُعَاوِيَةَ عَنِ الْأَعْمَشِ عَنْ حَبِيبٍ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

أَهْدَى الصَّعْبُ بْنُ جَثَّامَةَ إِلَى النَّبِيِّ ﷺ حِمَارَ وَحْشٍ وَهُوَ مُحْرِمٌ فَرَدَّهُ عَلَيْهِ وَقَالَ لَوْلَا أَنَّا مُحْرِمُونَ لَقَبِلْنَاهُ مِنْكَ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي بَكْرِ بْنِ أَبِي شَيْبَةَ وَأَبِي كُرَيْبٍ هَكَذَا رَوَاهُ الْأَعْمَشُ عَنْ حَبِيبِ بْنِ أَبِي ثَابِتٍ وَخَالَفَهُ شُعْبَةُ فَرَوَاهُ كَمَا

See similar narrations below:

Collected by Muslim
muslim:1194aAbū Bakr b. Abū Shaybah And ʾAbū Kurayb > Abū Muʿāwiyah > al-Aʿmash > Ḥabīb b. Abū Thābit > Saʿīd b. Jubayr > Ibn ʿAbbās

If we were not in a state of Ihram, we would have accepted it from you.  

مسلم:١١٩٤aوَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ وَأَبُو كُرَيْبٍ قَالاَ حَدَّثَنَا أَبُو مُعَاوِيَةَ عَنِ الأَعْمَشِ عَنْ حَبِيبِ بْنِ أَبِي ثَابِتٍ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

أَهْدَى الصَّعْبُ بْنُ جَثَّامَةَ إِلَى النَّبِيِّ ﷺ حِمَارَ وَحْشٍ وَهُوَ مُحْرِمٌ فَرَدَّهُ عَلَيْهِ وَقَالَ لَوْلاَ أَنَّا مُحْرِمُونَ لَقَبِلْنَاهُ مِنْكَ