The Messenger of Allah ﷺ recited aloud in the prayers where he was commanded to recite aloud, and remained silent in those where he was commanded to remain silent, for "And your Lord is never forgetful" [Maryam 19:64], and "Indeed, in the Messenger of Allah you have an excellent example to follow" [Ahzab 33:21].
حدثنا إسماعيل أنبأنا أيوب عن عكرمة قال
قرأ رسول الله ﷺ فيما أمر أن يقرأ فيه وسكت فيما أمر أن يسكت فيه {وما كان ربك نسيا} و {لقد كان لكم في رسول الله أسوة حسنة}