Abu Ayyub Khalid bin Zaid (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "Were you not to commit sins, Allah would create people who would commit sins and ask for forgiveness and He would forgive them".[Muslim].
Arabic/English book reference: Book 1, Hadith 423