It is narrated from Amr bin Dinar that Ibn Umar (may Allah be pleased with them) intended not to marry, so Hafsa (may Allah be pleased with her) said to him, "Get married; if you have children, they will pray for you after you have passed away."
Hadith Referenceمسند الإمام الشافعي / كتاب النكاح / 1124
Hadith Takhrijاسناده صحیح اخرجه البيهقى : 79/9 ۔ وفي المعرفة السنن والآثار له (4057) - وعبد الرزاق (10388)۔ وسعيد بن منصور (508)۔