Abu Musa Al-Ash'ari (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "When a slave's child dies, Allah the Most High asks His angels, 'Have you taken out the life of the child of My slave?" They reply in the affirmative. He then asks, 'Have you taken the fruit of his heart?' They reply in the affirmative. Thereupon he asks, 'What has My slave said?' They say: 'He has praised You and said: Inna lillahi wa inna ilaihi raji'un (We belong to Allah and to Him we shall be returned). Allah says: 'Build a house for My slave in Jannah and name it as Bait-ul-Hamd (the House of Praise)."'[At-Tirmidhi].
App reference: Book 14, Hadith 3
Arabic/English book reference: Book 14, Hadith 1395