It is reported from Sayyidah Aishah (may Allah be pleased with her) that she was asked about a man who has intercourse with his wife without ejaculating. She said: I and the Messenger of Allah (peace and blessings be upon him) did that, and we both performed ghusl together.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 769