حَدَّثَنَا مُسْلِمُ بْنُ إِبْرَاهِيمَ الْفَرَاهِيدِيُّ، حَدَّثَنَا هِشَامٌ، وَشُعْبَةُ، عَنْ قَتَادَةَ، عَنِ الْحَسَنِ، عَنْ أَبِي رَافِعٍ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏"‏إِذَا قَعَدَ بَيْنَ شُعَبِهَا الأَرْبَعِ وَأَلْزَقَ الْخِتَانَ بِالْخِتَانِ فَقَدْ وَجَبَ الْغُسْلُ ‏"
Translation
Abu Hurairah reported the Prophet (May peace be upon him) as saying

When he sits between her four limbs and presses the circumcised part against the circumcised part, then ritual bath (ghusl) has indeed become obligatory.