Mishkat al-Masabih 1736
وَعَن أبي مُوسَى اشعري قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: إِذَا مَاتَ وَلَدُ الْعَبْدِ قَالَ اللَّهُ تَعَالَى لِمَلَائِكَتِهِ: قَبَضْتُمْ وَلَدَ عَبْدِي؟ فَيَقُولُونَ: نَعَمْ. فَيَقُولُ: قَبَضْتُمْ ثَمَرَةَ فُؤَادِهِ؟ فَيَقُولُونَ: نَعَمْ. فَيَقُولُ: مَاذَا قَالَ عَبْدِي؟ فَيَقُولُونَ: حَمِدَكَ وَاسْتَرْجَعَ. فَيَقُولُ اللَّهُ: ابْنُوا لِعَبْدِي بَيْتًا فِي الْجَنَّةِ وَسَمُّوهُ بَيت الْحَمد . رَوَاهُ أَحْمد وَالتِّرْمِذِيّ
From Abu Musa al-Ashʿari, who said: The Messenger of Allah ﷺ said: "When the child of a servant dies, Allah the Exalted says to His angels: 'Have you taken the child of My servant?' They say: 'Yes.' He says: 'Have you taken the fruit of his heart?' They say: 'Yes.' He says: 'What did My servant say?' They say: 'He praised You and said: To Allah we belong and to Him we return.' Allah says: 'Build for My servant a house in Paradise and name it the House of Praise.'" Reported by Ahmad and at-Tirmidhi.