Abu Sa’id Al-Khudri (May Allah be pleased with him) reported:
A woman came to the Messenger of Allah (ﷺ) and said: “O Messenger of Allah! Only men benefit from your talks, so please fix a day for us, to teach us the knowledge which Allah has taught you.”
The Messenger of Allah (ﷺ) fixed a day and directed them to assemble. When they gathered, the Prophet (ﷺ) went to them and taught them what Allah had taught him.
He (ﷺ) then said, “Any woman of you whose three children die (in infancy) they will be a guard for her against Fire (of Hell).” One of the women asked: “What if she loses two?” The Messenger of Allah (ﷺ) replied, “Even two.”
[Al-Bukhari and Muslim].