Answered by Shaykh Faraz Rabbani
I have trouble controlling my laughter with things which I know are wrong. I can’t help laughing at dirty jokes, name calling, etc. Please help me.

Wa Alaykum Assalam wa Rahmatullah wa Barakatuhu,
In the Name of Allah, Most Merciful & Compassionate
Dealing with this requires two matters:
a) realization: one must realize the gravity and consequence of one’s speech, laughter, and jest. The Messenger of Allah (Allah bless him and give him peace) said, “Are people dragged to Hell by their forelocks by other than what their tongues have reaped?” [Tirmidhi, Ibn Maja, and Ahmad]
b) action: one should avoid that which leads to hearing the blameworthy and the sinful; when one hears such speech, one should stop it or stop listening; if one does neither, one must realize one’s mistake and sincerely repent.
Faraz Rabbani
Please see the following links in answer to your question: