Sayyiduna Abdullah bin al-Zubayr (may Allah be pleased with them both) narrates: The Prophet (peace and blessings be upon him) passed by some people who were laughing, and he said: "You are laughing, while Paradise and Hell are mentioned before you?" The narrator says: After that, none of those people was ever seen laughing until they died. The narrator says: This verse was revealed: "Inform My servants that indeed I am the Forgiving, the Merciful, and that My punishment is the painful punishment."
Al-Bazzar recorded it; its chain contains Musa bin Ubaydah al-Rabadhi, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الزهد / 18196