48_Who makes fun of anything where mention is made of Allah or the Qur'an or the Messenger (May the peace and blessing of Allah be upon him) Commits disbelief
Mocking an aspect of the religion takes one out of the fold of Islam. It can be in either of these 3:
Statement
Action
“If you ask them (about this), they declare: ‘We were only talking idly and joking.’ Say: ‘Was it at Allah (May Allah be pleased with him) and His Ayat (proofs, evidences, verses, lessons, signs, revelations, etc.) and His Messenger (May the peace and blessing of Allah be upon him) that you were mocking? ’ ” (9:65)