It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "If you did not sin, Allah would bring a people who would sin, and then He would forgive them."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12739