كتاب عيادة المريض وتشييع الميت والصلاة عليه وحضور دفنه
6  
The Book of Visiting the Sick
(152)
Chapter: Good Words to be Uttered before a dying Person and his Family
(152)
باب ما يقال عند الميت وما يقول من مات له ميت
Riyad as-Salihin 922
Abu Musa Al-Ash'ari (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said, "When a man's child dies, Allah, the Exalted, asks His angels, 'Have you taken out the life of the child of My slave?' and they reply in the affirmative. He (SWT) then asks, 'Have you taken the fruit of his heart?' and they reply in the affirmative. Thereupon He asks, 'What did my slave say?' They say: 'He praised You and said: Inna lillahi wa inna ilaihi raji'un (We belong to Allah and to Him we shall return).' Allah says: 'Build a house for my slave in Jannah and name it Baitul-Hamd (the House of Praise)."'

[At-Tirmidhi].

وعن أبي موسي رضي الله عنه أن رسول الله صلى الله عليه وسلم قال‏:‏ إذا مات ولد العبد، قال الله تعالي لملائكته‏:‏ قبضتم ولد عبدي، فيقولون‏:‏ نعم، فيقول‏:‏ قبضتم ثمرة فؤاده، فيقولون‏:‏ نعم‏.‏ فيقول‏:‏ ماذا قال عبدي، فيقولون‏:‏ حمدك واسترجع، فيقول الله تعالى‏:‏ ابنوا لعبدي بيتاً في الجنة، وسموه بيت الحمد‏"‏ ‏(‏‏(‏رواه الترمذي وقال‏:‏ حديث حسن‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 922
In-book reference : Book 6, Hadith 29