[Machine] I said, "O Messenger of Allah, I will pledge allegiance to you on the condition that you forgive me for my past sins." The Messenger of Allah ﷺ said, "Indeed, Islam erases what came before it, and Hijrah (migration) erases what came before it." Umar (may Allah be pleased with him) said, "By Allah, I have never seen anyone more modest than the Messenger of Allah ﷺ . I could not even look at him directly, nor could I approach him with whatever I desired, until Allah took him (in death) with that modesty from him."
قُلْتُ يَا رَسُولَ اللهِ أُبَايِعُكَ عَلَى أَنْ تَغْفِرَ لِي مَا تَقَدَّمَ مِنْ ذَنْبِي؟ فَقَالَ رَسُولُ اللهِ ﷺ إِنَّ الْإِسْلَامَ يَجُبُّ مَا كَانَ قَبْلَهُ وَإِنَّ الْهِجْرَةَ تَجُبُّ مَا كَانَ قَبْلَهَا قَالَ عَمْرٌو فَوَاللهِ إِنْ كُنْتُ لَأَشَدَّ النَّاسِ حَيَاءً مِنْ رَسُولِ اللهِ ﷺ فَمَا مَلَأْتُ عَيْنِي مِنْ رَسُولِ اللهِ ﷺ وَلَا رَاجَعْتُهُ بِمَا أُرِيدُ حَتَّى لَحِقَ بِاللهِ ﷻ حَيَاءً مِنْهُ