Sahih Muslim | Book 37 | Hadith Number 6620

Narrated by Abu Sirma
Abu Sirma reported that when the time of the death of Abu Ayyub Ansari drew near, he said: I used to conceal from you a thing which I heard from Allah's Messenger (may peace be upon him) and I heard Allah's Messenger (may peace be upon him) 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.