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:18259[Chain 1] ʿAlī b. Aḥmad b. ʿAbdān > Aḥmad b. ʿUbayd al-Ṣaffār > Jaʿfar b. Aḥmad al-Dimashqī > Hishām [Chain 2] Abū Aḥmad b. ʿAdī > Muḥammad b. Khuraym > Hishām b. Khālid > Marwān b. Muʿāwiyah > Yāsīn b. Muʿādh al-Zayyāt > al-Zuhrī > Saʿīd b. al-Musayyib > Abū Hurayrah ؓ

[Machine] "Indeed, the Messenger of Allah ﷺ said: 'Whoever gives allegiance to something, it belongs to him.' Yaasin bin Mu'adh al-Zaiyat al-Kufi, a weak narrator with a criticism from Yahya bin Ma'een and al-Bukhari, and others from the preservers. This hadith is only narrated from Ibn Abi Mulaykah from the Prophet ﷺ as a Mursal narration, and from 'Urwah from the Prophet ﷺ as a Mursal narration. Al-Shafi'i, may Allah have mercy on him, said as if the meaning of that is whoever gives allegiance to something that it is permissible for him to own, it belongs to him."  

البيهقي:١٨٢٥٩أَخْبَرَنَا عَلِيُّ بْنُ أَحْمَدَ بْنِ عَبْدَانَ أنبأ أَحْمَدُ بْنُ عُبَيْدٍ الصَّفَّارُ ثنا جَعْفَرُ بْنُ أَحْمَدَ الدِّمَشْقِيُّ ثنا هِشَامٌ ح وَأنبأ أَبُو سَعْدٍ الْمَالِينِيُّ أنبأ أَبُو أَحْمَدَ بْنُ عَدِيٍّ ثنا مُحَمَّدُ بْنُ خُرَيْمٍ ثنا هِشَامُ بْنُ خَالِدٍ ثنا مَرْوَانُ بْنُ مُعَاوِيَةَ ثنا يَاسِينُ بْنُ مُعَاذٍ الزَّيَّاتُ عَنِ الزُّهْرِيِّ عَنْ سَعِيدِ بْنِ الْمُسَيِّبِ عَنْ أَبِي هُرَيْرَةَ ؓ

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