Narrated by Aisha (may Allah be pleased with her), she said: The Prophet (ﷺ) said: "When any of you sits between the four branches and then joins the private part with the woman's private part, then ghusl becomes obligatory."
Hadith Referenceمسند الإمام الشافعي / كتاب الطهارة / 97
Hadith Takhrijاخرجہ الترمذی الطهارة، باب ماجاء اذا التقى الختانان وجب الغسل (109)- وقال ”حسن صحيح“ واحمد: 6/47، 97، 112، 135 - وابن أبي شيبة (929)