I heard the Messenger of Allah ﷺ say, "By the One in whose hand my soul rests," or he said, "By the One in whose hand the soul of Muhammad rests, if you were to sin until your sins filled what is between the sky and the earth, then you sought forgiveness from Allah , He would forgive you. By the One in whose hand the soul of Muhammad rests," or, "By the One in whose hand my soul rests, if you did not sin, Allah
would bring forth a people who would sin, then seek forgiveness from Allah, and He would forgive them."
حدثنا سريج بن النعمان حدثنا أبو عبيدة يعني عبد المؤمن بن عبيد الله السدوسي حدثني أخشن السدوسي قال دخلت على
سمعت رسول الله ﷺ يقول والذي نفسي بيده أو قال والذي نفس محمد بيده لو أخطأتم حتى تملأ خطاياكم ما بين السماء والأرض ثم استغفرتم الله عز وجل لغفر لكم والذي نفس محمد بيده أو والذي نفسي بيده لو لم تخطئوا لجاء الله عز وجل بقوم يخطئون ثم يستغفرون الله فيغفر لهم
Its chain is hasan, on account of Akhtham Sadusi (also said to be Khathami), whom Ibn Hibban mentioned in Thiqat, while Bukhari said nothing about him, and some considered him unknown, though he is not unknown. Haythami said in 10/125, "Its narrators are trustworthy." The hadith is found in Muslim, 4/2106, no. 2106, no. 2749, in the Book of Repentance, on the falling away of sins through seeking forgiveness, and in Tirmidhi, 4/272, no. 2526, through another route, where he said, "It is not connected."