Humayd bin Abdul-Rahman bin Awf reported that Marwan said to his gatekeeper, "Go, Rafi, to Ibn Abbas and say to him, 'If every man who rejoices at what he has been given and loves to be praised for what he has not done is to be punished, then we shall all surely be punished.'"Ibn Abbas replied, "What have you to do with this verse? The Prophet ﷺ once summoned some Jews and asked them about a certain matter. They concealed it from him and told him something else instead, showing him that they deserved his thanks for the information they had given him about what he asked, and they rejoiced at what they had gained by their concealment."Then Ibn Abbas recited, "And remember when Allah took a covenant from those who were given the Scripture" [Al Imran 3:187], and so on until His words, "they rejoice in what they have not done and love to be praised for what they have not done" [Al Imran 3:188].Abdul-Razzaq corroborated this from Ibn Jurayj. Ibn Muqatil also narrated to us that Hajjaj reported from Ibn Jurayj, who said that Ibn Abu Mulayka informed him from Humayd bin Abdul-Rahman bin Awf that Marwan said this.
حدثني إبراهيم بن موسى أخبرنا هشام أن ابن جريج أخبرهم عن ابن أبي مليكة أن
أخبره أن مروان قال لبوابه اذهب يا رافع إلى ابن عباس فقل لئن كان كل امرئ فرح بما أوتي وأحب أن يحمد بما لم يفعل معذبا لنعذبن أجمعون فقال ابن عباس وما لكم ولهذه إنما دعا النبي ﷺ يهود فسألهم عن شيء فكتموه إياه وأخبروه بغيره فأروه أن قد استحمدوا إليه بما أخبروه عنه فيما سألهم وفرحوا بما أوتوا من كتمانهم ثم قرأ ابن عباس {وإذ أخذ الله ميثاق الذين أوتوا الكتاب} كذلك حتى قوله {يفرحون بما أتوا ويحبون أن يحمدوا بما لم يفعلوا} تابعه عبد الرزاق عن ابن جريج ح حدثنا ابن مقاتل أخبرنا الحجاج عن ابن جريج أخبرني ابن أبي مليكة عن حميد بن عبد الرحمن بن عوف أنه أخبره أن مروان بهذا
Bukhari included the hadith of Ibn Jurayj, from Ibn Abu Mulayka, the hadith about Marwan, that he sent his servant Rafi to ask about the interpretation of Allah's saying, "Do not think that those who rejoice in what they were given..." [Al Imran 3:188], through the report of Hajjaj, from Ibn Jurayj, from Ibn Abu Mulayka, from Humayd bin Abdul-Rahman bin Awf.He also included it through the report of Hisham bin Yusuf, from Ibn Jurayj, from Ibn Abu Mulayka, from Alqama bin Waqqas, the very same hadith. The two versions differ, so one should examine which of the two narrators is corroborated.Muslim included the report of Hajjaj but not the report of Hisham.
The Hafiz also mentioned something similar in the introduction, p. 372, Damascus edition, then said, "It appears that this difference is not damaging, since it is possible that Ibn Abu Mulayka heard it from both of them together. And Allah knows best."
I say, it seems clear that the preferred version is the report of Ibn Jurayj from Ibn Abu Mulayka from Alqama, since it was narrated from Ibn Jurayj by Hisham, who is Hisham bin Yusuf Sanani, as mentioned in Fath al-Bari, and he is trustworthy, and by Abdul-Razzaq bin Hammam Sanani, who is a well known imam, and by Muhammad bin Thawr Sanani, who is trustworthy as stated in Taqrib.