Mujahid reported,

I came to Ibn Abbas and said, "Abu Abbas, I was with Ibn Umar when he recited a verse and wept."He asked, "Which verse?"I said, "Whether you disclose what is within yourselves or conceal it, Allah will bring you to account for it" [Baqarah 2:284].Ibn Abbas said, "When this verse was revealed, it distressed the companions of the Messenger of Allah ﷺ greatly and caused them severe anguish. They said, 'Messenger of Allah, we are ruined if we are to be held accountable for what we say and what we do. As for what is in our hearts, that is beyond our control.'The Messenger of Allah ﷺ said to them, 'Say, We hear and we obey.'So they said, 'We hear and we obey.'Then this verse abrogated it, 'The Messenger has believed in what was revealed to him from his Lord, and so have the believers' up to 'Allah does not burden a soul beyond its capacity. It will have what it has earned, and against it what it has acquired' [Baqarah 2:285–286]. So they were excused regarding the inner whisperings of the soul, and they were held accountable for their deeds."

Azami 12063

Hasan

عن مجاهد، قال

دخلت على ابن عباس، فقلت: يا أبا عباس، كنت عند ابن عمر، فقرأ هذه الآية فبكى، قال: أية آية؟ قلت: {وإن تبدوا ما في أنفسكم أو تخفوه يحاسبكم به الله} قال ابن عباس: إن هذه الآية حين أنزلت، غمت أصحاب رسول الله ﷺ غما شديدا، وغاظتهم غيظا شديدا، يعني، وقالوا: يا رسول الله، هلكنا، إن كنا نؤاخذ بما نتكلم، وبما نعمل، فأما ما في قلوبنا فليس بأيدينا، فقال لهم رسول الله ﷺ: قولوا: سمعنا وأطعنا قالوا: سمعنا وأطعنا، قال: فنسختها هذه الآية: {آمن الرسول بما أنزل إليه من ربه والمؤمنون} إلى {لا يكلف الله نفسا إلا وسعها لها ما كسبت وعليها ما اكتسبت} فتجوز لهم عن حديث النفس، وأخذوا بالأعمال.

الأعظمي 12063حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "To Allah belongs whatever is in the heavens and whatever is in the earth. Whether you reveal what is in yourselves or conceal it, Allah will bring you to account for it. Then He will forgive whom He wills and punish whom He wills, and Allah is over all things competent. The Messenger has believed in what was revealed to him from his Lord, and so have the believers. All of them have believed in Allah and His angels and His books and His messengers, saying, We make no distinction between any of His messengers. And they say, We hear and we obey. Grant us Your forgiveness, our Lord, and to You is the destination. Allah does not burden a soul beyond its capacity. It will have the reward of what good it has earned, and it will bear the consequence of what evil it has earned. Our Lord, do not impose blame upon us if we forget or make a mistake. Our Lord, do not lay upon us a burden like that which You laid upon those before us. Our Lord, do not burden us with that which we have no ability to bear. And pardon us, and forgive us, and have mercy upon us. You are our Protector, so give us victory over the disbelieving people"
Numbering
Jami al-Kamil 12063 (2nd edition)
Azami 12063