Marwan said, "Rafi, go as my doorkeeper to Ibn Abbas and say to him, 'If every one of us who rejoices at what he has done and loves to be praised for what he has not done is to be punished, then we shall all be punished.'"Ibn Abbas replied, "What concern is this verse to you? This verse was revealed only about the People of the Book."Then Ibn Abbas recited, "And when Allah took a covenant from those who were given the Scripture, that you should make it clear to the people and not conceal it" [Al Imran 3:187], this verse. And Ibn Abbas recited, "Do not think that those who rejoice in what they have done and love to be praised for what they have not done" [Al Imran 3:188].Ibn Abbas said, "The Prophet ﷺ asked them about something, but they concealed it from him and told him something else instead. They left having shown him that they had answered what he asked, and they sought his praise for that, rejoicing in what they had done by concealing from him what he had asked them about."
حدثنا زهير بن حرب وهارون بن عبد الله واللفظ لزهير قالا حدثنا حجاج بن محمد عن ابن جريج أخبرني ابن أبي مليكة أن
أن مروان قال اذهب يا رافع لبوابه إلى ابن عباس فقل لئن كان كل امرئ منا فرح بما أتى وأحب أن يحمد بما لم يفعل معذبا لنعذبن أجمعون فقال ابن عباس ما لكم ولهذه الآية إنما أنزلت هذه الآية في أهل الكتاب ثم تلا ابن عباس {وإذ أخذ الله ميثاق الذين أوتوا الكتاب لتبيننه للناس ولا تكتمونه} هذه الآية وتلا ابن عباس {لا تحسبن الذين يفرحون بما أتوا ويحبون أن يحمدوا بما لم يفعلوا} وقال ابن عباس سألهم النبي ﷺ عن شيء فكتموه إياه وأخبروه بغيره فخرجوا قد أروه أن قد أخبروه بما سألهم عنه واستحمدوا بذلك إليه وفرحوا بما أتوا من كتمانهم إياه ما سألهم عنه