prohibits ..

“O you who have believed, let not a people ridicule [another] people; perhaps they may be better than them; nor let women ridicule [other] women; perhaps they may be better than them. And do not insult one another and do not call each other by [offensive] nicknames. Wretched is the name [that is, mention] of disobedience after [one’s] faith. And whoever does not repent — then it is those who are the wrongdoers.” (Qur’an, 49: 11)”

Finally, the worst type of joke, which is forbidden, is one about Allah,
His messenger or anything related to Islam. Such jokes take a person out ofthe fold of Islam and are regarded as kufr.

*Consequently, certain practices that are rife among some Muslims, such as mocking the hijab (veil ordained by Allah for believing women), the beard, polygamy, among other things — amount to an extremely unacceptable sin and are considered equal to kufr. It is a sign of hypocrisy; a person claims verbally to be a Muslim, but inwardly hates Islam or certain aspects of it.*