Sayyiduna Abu Ayyub Ansari (may Allah be pleased with him) narrates from Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) regarding the Prophet Muhammad (peace and blessings be upon him). Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) asked: What is your opinion about this matter—if a person has intercourse with his wife but does not ejaculate? The Prophet Muhammad (peace and blessings be upon him) said: He should wash his private part and his testicles, perform ablution, and then offer prayer.
Hadith Referenceصحیح ابن حبان / كتاب الطهارة / 1170
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - انظر ما قبله.فضيلة الشيخ العلّامة شُعيب الأرناؤوطمحمد بن عبد ربه، ذكره المؤلف في «الثقات» 9/ 107، وقال: يخطئ ويخالف، وقد تابعه عليه نعيم بن حماد عند الطحاوي 1/ 54، وباقي رجاله ثقات، وانظر الحديث الذي قبله.