Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:38:43

And We granted him his family and a like ˹number˺ with them as mercy from Us and a reminder for those of understanding.  

And We gave him ˹back˺ his family along with others like them, that is, God brought back to life all the children of his that had died and provided him with as many ˹in addition to them˺, as a mercy, a grace, from us, and a reminder, an admonition, to people of pith, possessors of intellect.
القرآن:٣٨:٤٣

وَوَهَبْنَا لَهُ أَهْلَهُ وَمِثْلَهُمْ مَعَهُمْ رَحْمَةً مِنَّا وَذِكْرَىٰ لِأُولِي الْأَلْبَابِ  

{ووهبنا له أهله ومثلهم معهم} أي أحيا الله له من مات من أولاده ورزقه مثلهم {رحمة} نعمة {منا وذكرى} عظة {لأولي الألباب} لأصحاب العقول.