I used to conceal from you a thing which I heard from Messenger of Allah ﷺ and I heard Messenger of Allah ﷺ as saying: Had you not committed sins, Allah would have brought into existence a creation that would have committed sin (and Allah) would have forgiven them. (Using translation from Muslim 2748a)
أَنَّهُ قَالَ حِينَ حَضَرَتْهُ الْوَفَاةُ قَدْ كُنْتُ كَتَمْتُ عَنْكُمْ شَيْئًا سَمِعْتُهُ مِنْ رَسُولِ اللهِ ﷺ يَقُولُ لَوْلَا أَنَّكُمْ تُذْنِبُونَ لَخَلَقَ اللهُ قَوْمًا يُذْنِبُونَ فَيَغْفِرُ لَهُمْ