Sunan Ibn Majah, Book 37, Hadith 149 (Ibn Majah 4252)

It was narrated from Abu Hurairah that the Prophet (ﷺ) said:

“If you were to commit sin until your sins reach the heaven, then you were to repent, your repentance would be accepted.”