Anyone who has sexual intercourse with a beast, a dead or living woman below the vagina, a female slave who owns some of it, or his sister who owns some of it, or his wife during her menstruation or anus, or masturbates with his hand, or a woman masturbates with a woman, shall not be subject to the hadd but shall be subject to a fine.
ومن وطيء بهيمة أو امرأة ميتة أو حية فيما دون الفرج أو جارية يملك بعضها أو أخته المملوكة له اروطى، زوجته في الحيض أو الدبر أو استمنى بيده أو أنت المرأة المرأة لا حد عليه ويعزرا. - Fiqh Umdat o12.3 (islam)