Allah's Messenger (ﷺ) said, "Any Muslim who has lost three of his children will not be touched by the Fire except that which will render Allah's oath fulfilled."
Sahih al-Bukhari Book 83, Hadith 35