“I heard the Messenger of Allah (saws ) saying at his death:
‘O Allah, forgive me and have mercy on me, and join me with the Highest Company
اللَّهُمَّ اغْفِرْ لِي وَارْحَمْنِي وَأَلْحِقْنِي بِالرَّفِيقِ الأَعْلَى ”
(Allāhummaghfirlī warḥamnī wa alḥiqnī bir-rafīqil a`lā).’”
Jami` at-Tirmidhi 3496
In-book : Book 48, Hadith 127
This action of the Prophet (pbuh)shows that everyone is in need of Allah’s forgiveness. The Prophet asked Allah’s mercy for himself and educated the Muslims.