It is narrated from Hazrat Aisha (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) said: When the private part meets the private part, then ghusl becomes obligatory. Once I and the Prophet (peace and blessings be upon him) did this, and afterwards performed ghusl.