Mishkat al-Masabih 19
وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ خَرَجَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي أَضْحًى أَوْ فِطْرٍ إِلَى الْمُصَلَّى فَمَرَّ عَلَى النِّسَاءِ فَقَالَ يَا مَعْشَرَ النِّسَاءِ تَصَدَّقْنَ فَإِنِي أُرِيتُكُنَّ أَكْثَرَ أَهْلِ النَّارِ فَقُلْنَ وَبِمَ يَا رَسُولَ اللَّهِ قَالَ تُكْثِرْنَ اللَّعْنَ وَتَكْفُرْنَ الْعَشِيرَ مَا رَأَيْتُ مِنْ نَاقِصَاتِ عَقْلٍ وَدِينٍ أَذْهَبَ لِلُبِّ الرجل الحازم من إحداكن قُلْنَ وَمَا نُقْصَانُ دِينِنَا وَعَقْلِنَا يَا رَسُولَ اللَّهِ قَالَ أَلَيْسَ شَهَادَةُ الْمَرْأَةِ مِثْلَ نِصْفِ شَهَادَةِ الرَّجُلِ قُلْنَ بَلَى قَالَ فَذَلِكَ مِنْ نُقْصَان عقلهَا أَلَيْسَ إِذَا حَاضَتْ لَمْ تَصِلِّ وَلَمْ تَصُمْ قُلْنَ بَلَى قَالَ فَذَلِكَ مِنْ نُقْصَانِ دِينِهَا
From Abu Saʿid al-Khudri, who said: The Messenger of Allah ﷺ went out on [the day of] al-Adha or al-Fitr to the prayer-place. He passed by the women and said: "O women, give charity, for I have been shown that you are the majority of the people of the Fire." They said: "And why, O Messenger of Allah?" He said: "You curse often and you are ungrateful to your husbands. I have not seen anyone deficient in intellect and religion more able to take away the mind of a resolute man than one of you." They said: "And what is the deficiency of our religion and our intellect, O Messenger of Allah?" He said: "Is not the testimony of a woman like half the testimony of a man?" They said: "Yes." He said: "That is from the deficiency of her intellect. Is it not that when she menstruates she does not pray and does not fast?" They said: "Yes." He said: "That is from the deficiency of her religion."