Sunan an-Nasa'i, Book 21, Hadith 56 (Nasa'i 1878)

It was narrated that Anas said:

"The Messenger of Allah said: 'There is no Muslim, three of whose children die before reaching puberty, but Allah will admit him to Paradise by virtue of His mercy towards them."'