All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
Such jokes that are intended to refer to some jurisprudential rulings if it does not despise the rulings of the Sharee’ah or mocking and making fun of it, then it is not included in mocking the religion. Al-Ghazali said in Ihyaa’ ‘Uloom ad-Deen: “The meaning of mocking is disdaining and belittling and pointing out to the faults and defects in a manner that makes people laugh.” [End of quote]
However, this does not mean that it is permissible to spread, circulate, and publicize these jokes. Issues related to Islamic rulings should be preserved from humor, misuse, and mockery.
For more benefit on mocking the religion of Islam or its rituals, please refer to Fataawa 5088, 328495, 246388, 207718, 91548, 196391 and 88261.
Allah Knows best.