Through the same chain, it is narrated from Sayyiduna Samurah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) used to forbid women from lying down with one another unless there was a garment between them, and he used to forbid a man from lying down with his companion unless there was a garment between them.
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 7011