He asked Uthman bin Affan , "What do you say about a man who has intercourse but does not ejaculate?"Uthman replied, "He performs ablution as he does for prayer and washes his private part." Uthman added, "I heard this from the Messenger of Allah ﷺ."So I asked Ali, Zubayr, Talha, and Ubayy bin Kaab
about it, and they instructed him to do the same.
أنه سأل عثمان بن عفان رضي الله عنه قلت: أرأيت إذا جامع فلم يمن؟ قال: يتوضأ كما يتوضأ للصلاة، ويغسل ذكره، قال عثمان: سمعته من رسول الله ﷺ، فسألت عن ذلك عليا والزبير وطلحة وأبي بن كعب رضي الله عنهم فأمروه بذلك.
Bukhari related it in the Book of Wudu (179), and this is his wording, and Muslim related it in the Book of Menstruation (347), both from the hadith of Yahya bin Abu Kathir, from Abu Salama, that Ata bin Yasar informed him, that Zayd bin Khalid informed him, and he related the hadith.Muslim also related it from the hadith of Abu Ayub, that he informed him that he heard that from the Messenger of Allah ﷺ. He did not give his wording, and the hadith of Abu Ayub will come with its wording.