[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.
أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَا وَصِيَّةَ لِوَارِثٍ قَالَ الشَّافِعِيُّ وَرَوَى بَعْضُ الشَّامِيِّينَ حَدِيثًا لَيْسَ مِمَّا يُثْبِتُهُ أَهْلُ الْحَدِيثِ؛ لِأَنَّ بَعْضَ رِجَالِهِ مَجْهُولُونَ فرُوِّينَاهُ عَنِ النَّبِيِّ ﷺ مُنْقَطِعًا وَاعْتَمَدْنَا عَلَى حَدِيثِ أَهْلِ الْمَغَازِي عَامَّةً أَنَّ النَّبِيَّ ﷺ قَالَ عَامَ الْفَتْحِ لَا وَصِيَّةَ لِوَارِثٍ وَإِجْمَاعُ الْعَامَّةِ عَلَى الْقَوْلِ بِهِ