Abdullah bin Abbas reported,

When this verse was revealed, "Whether you disclose what is within yourselves or conceal it, Allah will bring you to account for it" [Baqarah 2:284], something entered their hearts from it that had never entered their hearts from anything before.The Prophet ﷺ said, "Say, 'We hear and we obey, and we submit.'"He said, so Allah cast faith into their hearts, and Allah the Exalted revealed, "Allah does not burden a soul beyond what it can bear. It will have what it has earned, and against it what it has earned. Our Lord, do not take us to task if we forget or make a mistake" [Baqarah 2:286].He said, "I have done so.""Our Lord, do not place upon us a burden like that which You placed upon those before us."He said, "I have done so.""And forgive us, and have mercy upon us. You are our Protector."He said, "I have done so."

Muslim 330

Sahih

حدثنا أبو بكر بن أبي شيبة وأبو كريب وإسحق بن إبراهيم واللفظ لأبي بكر قال إسحق أخبرنا وقال الآخران حدثنا وكيع عن سفيان عن آدم بن سليمان مولى خالد قال سمعت سعيد بن جبير يحدث

عن ابن عباس قال

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

مسلم 330صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Clarification that he سبحانه وتعالى was not burdened except with what is within capacity
Numbering
Darussalam 330
Muslim 330