Sayyiduna Abu Hurayrah (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) said: "When the private parts meet, ghusl becomes obligatory, even if there is no ejaculation."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 766