Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: If you did not commit sins, Allah would bring forth a people who would commit sins, so that He may forgive them.
Hadith Referenceالفتح الربانی / كتاب التوبة / 10182
Hadith Gradingمحدثین:صحیح
Hadith Takhrij«حديث صحيح بطرقه وشواھده، أخرجه الترمذي: 2526، (انظر مسند أحمد ترقيم الرسالة: 8043 ترقیم بيت الأفكار الدولية: 8030»
Brief Explanation
Benefits: … If you do not commit sins, Allah Ta'ala will remove you … To understand the meaning of this, see Hadith number (10176).
In these ahadith, in reality, encouragement to repent has been given, not the audacity to commit sins. Take a look at the Muslims of the present age—can you find any individual who has not committed any sin in his life? The purpose of the Prophet sallallahu alayhi wa sallam is that since all people are sinners, therefore everyone should seek forgiveness from Allah Ta'ala.