Instances where Allah (swt) rebukes the Companions.
3:165: Allah (swt) blames the defeat at Uhud on the companions, stating it occured because of their disobedience.
Quran.com: Ali' Imran 3:165
Translation: Dr. Mustafa Khattab, the Clear Quran

Why is it when you suffered casualties ˹at Uḥud˺—although you had made your enemy suffer twice as much ˹at Badr˺— you protested, “How could this be?”? Say, ˹O Prophet,˺ “It is because of your disobedience.” Surely Allah is Most Capable of everything.

أَوَلَمَّآ أَصَبَتْكُم مُّصِيبَةٌۭ قَدْ أَصَبْتُم مِّثْلَيْهَا قُلْتُمْ أَنَّىٰ هَذَا ۖ قُلْ هُوَ مِنْ عِندِ أَنفُسِكُمْ ۗ إِنَّ ٱللَّهَ عَلَىٰ كُلِّ شَىْءٍۢ قَدِيرٌۭ

Reference  : Quran: Ali' Imran 3:165

62:11: The companions abandon the Prophet while he is on the pulpit at Juma, pursuing a caravan of goods.
Quran.com: Al-Jumu'ah 62:11
Translation: Dr. Mustafa Khattab, the Clear Quran

When they saw the fanfare along with the caravan, they ˹almost all˺ flocked to it, leaving you ˹O Prophet˺ standing ˹on the pulpit˺. Say, “What is with Allah is far better than amusement and merchandise. And Allah is the Best Provider.”

وَإِذَا رَأَوۡا۟ تِجَـٰرَةً أَوۡ لَهۡوًا ٱنفَضُّوۤا۟ إِلَیۡهَا وَتَرَكُوكَ قَاۤىِٕمࣰاۚ قُلۡ مَا عِندَ ٱللَّهِ خَیۡرࣱ مِّنَ ٱللَّهۡوِ وَمِنَ ٱلتِّجَـٰرَةِۚ وَٱللَّهُ خَیۡرُ ٱلرَّ ٰزِقِینَ

Reference  : Quran: Al-Jumu'ah 62:11