These verses distinguish several kinds of joy: a joy that remains incomplete, a forbidden joy, and the one that truly deserves rejoicing, the bounty and mercy of Allah. They recall that joy is part of human nature, and also mention those who rejoice at the misfortune that befalls the believers.
Verses gathered from a topical index of the Quran, in Mushaf order; every verse is quoted in full.
But if We give him a taste of favor after hardship has touched him, he will surely say, "Bad times have left me." Indeed, he is exultant and boastful -
And [the believers among] those to whom We have given the [previous] Scripture rejoice at what has been revealed to you, [O Muḥammad], but among the [opposing] factions are those who deny part of it [i.e., the Qur’ān]. Say, "I have only been commanded to worship Allāh and not associate [anything] with Him. To Him I invite, and to Him is my return."