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.