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:12536Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > Ibn ʿUyaynah > Sulaymān al-Aḥwal > Mujāhid

[Machine] The Messenger of Allah, ﷺ , said that there is no will for an heir. Ash-Shafi'i and some scholars from Sham (Syria) narrated a hadith that is not proven by the people of Hadith, because some of its narrators are unknown. We have received it as a disconnected hadith from the Prophet, ﷺ , and relied on the hadith of the people of Maghazi (Islamic military expeditions) in general, that the Prophet, ﷺ , said in the year of victory, there is no will for an heir. The consensus of the majority of scholars is that this is the correct saying.  

البيهقي:١٢٥٣٦أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنا الرَّبِيعُ بْنُ سُلَيْمَانَ أنا الشَّافِعِيُّ أنا ابْنُ عُيَيْنَةَ عَنْ سُلَيْمَانَ الْأَحْوَلِ عَنْ مُجَاهِدٍ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَا وَصِيَّةَ لِوَارِثٍ قَالَ الشَّافِعِيُّ وَرَوَى بَعْضُ الشَّامِيِّينَ حَدِيثًا لَيْسَ مِمَّا يُثْبِتُهُ أَهْلُ الْحَدِيثِ؛ لِأَنَّ بَعْضَ رِجَالِهِ مَجْهُولُونَ فرُوِّينَاهُ عَنِ النَّبِيِّ ﷺ مُنْقَطِعًا وَاعْتَمَدْنَا عَلَى حَدِيثِ أَهْلِ الْمَغَازِي عَامَّةً أَنَّ النَّبِيَّ ﷺ قَالَ عَامَ الْفَتْحِ لَا وَصِيَّةَ لِوَارِثٍ وَإِجْمَاعُ الْعَامَّةِ عَلَى الْقَوْلِ بِهِ