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:4:127

And they request from you, ˹O Muhammad˺, a ˹legal˺ ruling concerning women. Say, "Allah gives you a ruling about them and ˹about˺ what has been recited to you in the Book concerning the orphan girls to whom you do not give what is decreed for them - and ˹yet˺ you desire to marry them - and concerning the oppressed among children and that you maintain for orphans ˹their rights˺ in justice." And whatever you do of good - indeed, Allah is ever Knowing of it.  

They will ask you for a pronouncement concerning, the matter of, women, and their inheritance. Say, to them: ‘God pronounces to you concerning them, and what is recited to you in the Book, the Qur’ān, in the ‘inheritance’ verse ˹Q. 4:11˺, and He also pronounces to you, concerning the orphan women to whom you do not give what is prescribed, ˹what˺ is obligatory, for them, of inheritance, for you, O guardians, ˹who˺ desire, not, to marry them, because of their ugliness, and you prevent them from marrying ˹others˺, coveting their inheritance: in other words, God pronounces to you not to do this; and, concerning, the oppressed, young, children, that you give them what is their due, and, He also commands you, that you deal justly, equitably, with orphans, with respect to inheritance and dowry. Whatever good you do, God is ever Knower of it’, and He will requite you for it.
القرآن:٤:١٢٧

وَيَسْتَفْتُونَكَ فِي النِّسَاءِ ۖ قُلِ اللَّهُ يُفْتِيكُمْ فِيهِنَّ وَمَا يُتْلَىٰ عَلَيْكُمْ فِي الْكِتَابِ فِي يَتَامَى النِّسَاءِ اللَّاتِي لَا تُؤْتُونَهُنَّ مَا كُتِبَ لَهُنَّ وَتَرْغَبُونَ أَنْ تَنْكِحُوهُنَّ وَالْمُسْتَضْعَفِينَ مِنَ الْوِلْدَانِ وَأَنْ تَقُومُوا لِلْيَتَامَىٰ بِالْقِسْطِ ۚ وَمَا تَفْعَلُوا مِنْ خَيْرٍ فَإِنَّ اللَّهَ كَانَ بِهِ عَلِيمًا  

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