Humaid bin ‘Abdur-Rahman bin ‘Awf narrated that Marwan said:
Go, O Rafi' - to his gatekeeper - to Ibn 'Abbas and say: If every man among us who rejoices in what he has done and loves to be praised for what he has not done is to be punished, then we will all be punished. Ibn 'Abbas said: What does this verse have to do with you? This verse was revealed concerning the People of the Book. Then Ibn 'Abbas recited: "(And remember) when Allah took a covenant from those who were given the Scripture (Jews and Christians) to make it (the news of the coming of Prophet Muhammad (ﷺ) and the religious knowledge) known and clear to mankind...” (Al ‘Imran 3:187). And Ibn 'Abbas recited: “Think not that those who rejoice in what they have done (or brought about), and love to be praised for what they have not done" (Al ‘Imran 3:188). Then Ibn 'Abbas said: The Prophet (ﷺ) asked them about something and they concealed it and told him something else, and they went out thinking that he thought they had told him what he had asked them about, so they praised themselves and rejoiced over what they had done by concealing from him what he had asked them about.