Sunan an-Nasa'i, Book 21, Hadith 58 (Nasa'i 1880)

It was narrated from Abu Hurairah that the Messenger of Allah said:

"No Muslim, three of whose children die, will be touched by the Fire, except in fulfillment of the (Divine) oath."