Sahih al-Bukhari, Book 83, Hadith 35 (Bukhari 6414)

Narrated Abu Huraira:

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."