ʿAmr b. Dīnār reports that ʿAbdullāh b. ʿUmar – Allāh be pleased with them – intended not to marry after the [passing of the] Prophet – ṣallallāhu ʿalayhi wa salam, so Ḥafṣah (his sister) – Allāh be pleased with her – advised him:

My brother, marry, for if you have a child and it dies, it will precede you into Al-Jannah (and be a cause for you to be admitted), and if it lives, the child will supplicate for good for you.

ʿAbd Al-Razzāq Al-Ṣanʿānī, Al-Muṣannaf #10388