It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) entered the mosque, and some women of the Ansar were there. He (peace and blessings be upon him) admonished them, reminded them and said: "Any woman among you whose three children die will enter Paradise." One woman among them, who was of lower standing than the rest, said: "O Messenger of Allah! And those whose two children have died?" He (peace and blessings be upon him) said: "Those with two as well."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10376