Jami` at-Tirmidhi #1462
The Book on Legal Punishments (Al-Hudud) 17:46
Narrated Ibn 'Abbas:
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."