Riyad as-Salihin, Book 14, Hadith 1395 (In-Book)

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

وعن أبي موسى الأشعري رضي الله عنه أن رسول الله صلى الله عليه وسلم قال‏:‏ ‏ "‏إذا مات ولد العبد قال الله تعالى لملائكته‏:‏ قبضتم ولد عبدي‏؟‏ فَيقولون : نَعَمْ ، فيقول : قَبَضْتُمْ ثَمَرَةَ فُؤادِهِ ؟ فيقولون : نَعَمْ ، فيقول : فماذا قال عبدي‏؟‏ فيقولون‏:‏ حمدك واسترجع، فيقول الله تعالى‏:‏ ابنوا لعبدي بيتًا في الجنة، وسموه بيت الحمد‏" ‏‏.‏ رواه الترمذي وقال حديث حسن‏.‏

sunnah.com