Mishkat al-Masabih 1754
وَعَنْ مُعَاذِ بْنِ جَبَلٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَا مِنْ مُسْلِمَيْنِ يُتَوَفَّى لَهُمَا ثَلَاثَةٌ إِلَّا أَدْخَلَهُمَا اللَّهُ الْجَنَّةَ بِفَضْلِ رَحْمَتِهِ إِيَّاهُمَا» . فَقَالُوا: يَا رَسُولَ الله أَو اثْنَان؟ قَالَ: «أواثنان» . قَالُوا: أَوْ وَاحِدٌ؟ قَالَ: «أَوْ وَاحِدٌ» . ثُمَّ قَالَ: «وَالَّذِي نَفْسِي بِيَدِهِ إِنَّ السِّقْطَ لَيَجُرُّ أُمَّهُ بِسَرَرِهِ إِلَى الْجَنَّةِ إِذَا احْتَسَبَتْهُ» . رَوَاهُ أَحْمَدُ وَرَوَى ابْنُ مَاجَهْ مِنْ قَوْلِهِ: «وَالَّذِي نَفسِي بِيَدِهِ»
From Muʿadh ibn Jabal, who said: The Messenger of Allah ﷺ said: "There are no two Muslims who have three [children] die except that Allah admits them to Paradise by the bounty of His mercy to them." They said: "O Messenger of Allah, or two?" He said: "Or two." They said: "Or one?" He said: "Or one." Then he said: "By the One in whose hand is my soul, the miscarried foetus will drag its mother by its umbilical cord to Paradise if she seeks the reward for it [from Allah]." Reported by Ahmad, and Ibn Majah reported it from his words: "By the One in whose hand is my soul."