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