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.
quran:33:6

The Prophet is more worthy of the believers than themselves, and his wives are ˹in the position of˺ their mothers. And those of ˹blood˺ relationship are more entitled ˹to inheritance˺ in the decree of Allah than the ˹other˺ believers and the emigrants, except that you may do to your close associates a kindness ˹through bequest˺. That was in the Book inscribed.  

The Prophet is closer to the believers than their ˹own˺ souls, in terms of what he calls them to and what their own souls have called them to contravene, and his wives are their mothers, insofar as they ˹the believers˺ are forbidden to marry them. And those related by blood, kinsmen, are more entitled, to inherit ˹from˺, one another in the Book of God than the ˹other˺ believers and the Emigrants, in other words, than inheriting on account of ˹their sharing˺ faith and the Emigration, which had been the case at the beginning of Islam but was then abrogated; barring any favour you may do your friends, by ˹making˺ a bequest, which is permissible. This, namely, the abrogation of inheritance on account of ˹shared˺ faith and Emigration by the inheritance on account of kinship, is written in the Book — in both instances al-kitāb, ‘the Book’, denotes the Preserved Tablet (al-lawh al-mahfūz).
القرآن:٣٣:٦

النَّبِيُّ أَوْلَىٰ بِالْمُؤْمِنِينَ مِنْ أَنْفُسِهِمْ ۖ وَأَزْوَاجُهُ أُمَّهَاتُهُمْ ۗ وَأُولُو الْأَرْحَامِ بَعْضُهُمْ أَوْلَىٰ بِبَعْضٍ فِي كِتَابِ اللَّهِ مِنَ الْمُؤْمِنِينَ وَالْمُهَاجِرِينَ إِلَّا أَنْ تَفْعَلُوا إِلَىٰ أَوْلِيَائِكُمْ مَعْرُوفًا ۚ كَانَ ذَٰلِكَ فِي الْكِتَابِ مَسْطُورًا  

{النبيُّ أولى بالمؤمنين من أنفسهم} فيما دعاهم إليه ودعتهم أنفسهم إلى خلافه {وأزواجه أمهاتهم} في حرمة نكاحهن عليهم {وأولوا الأرحام} ذوو القرابات {بعضهم أولى ببعض} في الإرث {في كتاب الله من المؤمنين والمهاجرين} أي من الإرث بالإيمان والهجرة الذي كان أول الإسلام فنسخ {إلا} لكن {أن تفعلوا إلى أوليائكم معروفا} بوصية فجائز {كان ذلك} أي نسخ الإرث بالإيمان والهجرة بإرث ذوي الأرحام {في الكتاب مسطورا} وأريد بالكتاب في الموضعين اللوح المحفوظ.