عَنْ مُجَاهِدٍ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَتْ أُمُّ سَلَمَةَ رَضِيَ اللَّهُ عَنْهَا يَا رَسُولَ اللَّهِ يَغْزُو الرِّجَالُ وَلَا نَغْزُو وَلَنَا نِصْفُ الْمِيرَاثِ فَأَنْزَلَ اللَّهُ وَلَا تَتَمَنَّوْا مَا فَضَّلَ اللَّهُ بِهِ بَعْضَكُمْ عَلَى بَعْضٍ [سورة النساء: ٣٢]
Mujahid says that Sayyida Umm Salama (may Allah be pleased with her) said: O Messenger of Allah! Men participate in jihad and we women do not participate in jihad, and our share of inheritance is also half that of men? So Allah Almighty revealed this verse: {وَلَا تَتَمَنَّوْا مَا فَضَّلَ اللّٰہُ بِہٖ بَعْضَکُمْ عَلٰی بَعْضٍ لِلرِّجَالِ نَصِیْبٌ مِّمَّا اکْتَـسَبُوْا وَلِلنِّسَاءِ نَصِیْبٌ مِّمَّا اکْتَـسَبْنَ وَسْـئَلُوا اللّٰہَ مِنْ فَضْلِہٖ اِنَّ اللّٰہَ کَانَ بِکُلِّ شَیْءٍ عَلِـیْمًا} … And do not wish for that by which Allah has made some of you excel others. For men is a share of what they have earned, and for women is a share of what they have earned. And ask Allah for His bounty. Surely, Allah is ever All-Knowing of everything.