مسألة وإن أتت المرأة المرأة فلا حد عليهما
إذا تدالكت امرأتان فهما ملعونتان لما روى عن النبي ﷺ أنه قال إذا أتت المرأة المرأة فهما زانيتان ولا حد عليهما لأن لا يتضمن إيلاجاً فأشبه المباشرة دون الفرج وعليهما التعزير لأنه زنا لا حد فيه فأشبه مباشرة الرجل المرأة من غير جماع
المغني لإبن قدامة كتاب الحدود
Issue: If a woman comes to another woman there is no punishment upon the two of them.
If two women rub on each other, they are accursed, according to what is narrated from the Prophet (SAW), who said: "If a woman comes to another woman, both of them are adulteresses." But there is no punishment due them since it does not involve penetration, and is similar to intimacy in other than the vagina; however the two of them may be given a discretionary punishment [ta'zir], since it is adultery, but without obligatory legal penalty [hadd], as it resembles intimacy of a man with a woman without actual sex.
Ibn Qudama, Al-mughni [The Enricher], The book of legal punishments