It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that no man should touch his naked body with another man in a single garment, nor should any woman touch her naked body with another woman in a single garment. The Prophet (peace and blessings be upon him) strictly forbade this. And he said that when any one of you is attracted to a woman, he should go to his wife, for this will remove the thoughts that have arisen in his heart.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 15249