عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ وَلَا تُبَاشِرُ الْمَرْأَةُ الْمَرْأَةَ فِي الثَّوْبِ الْوَاحِدِ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ لَا يُبَاشِرُ الرَّجُلُ الرَّجُلَ وَلَا الْمَرْأَةُ الْمَرْأَةَ إِلَّا الْوَلَدَ وَالْوَالِدَ وَفِي رِوَايَةٍ أَلَا لَا يُفْضِيَنَّ رَجُلٌ إِلَى رَجُلٍ وَلَا امْرَأَةٌ إِلَى امْرَأَةٍ إِلَّا إِلَى وَلَدٍ أَوْ وَالِدٍ
It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that a woman should not lie in bodily contact with another woman in a single garment. The Messenger of Allah, peace and blessings be upon him, said: A man should not lie with a man, and a woman should not lie with a woman, except for children and parents. In another narration it is stated: Never should any man lie with another man, nor any woman with another woman, except for children and parents.
Brief Explanation
Benefits: … Although, due to the mutual sanctity between children and parents, there is no risk of committing a forbidden act, nevertheless, even for them, lying in this manner is prohibited, because this too entails exposure, indecency, and the emergence of impure thoughts. In this hadith, children and parents have been exempted, but the words of exemption are weak.