That the Prophet (ﷺ) said: "If a man says to another man: 'O you Jew' then beat him twenty times. If he says: 'O you effeminate' then beat him twenty times. And whoever has relations with someone that is a Mahram then kill him."
Jami` at-Tirmidhi Book 17, Hadith 46