In one narration the words are: "If you are a doer of evil, you are given respite and you turn back from your evil, then that is better for you."
Ahmad, Abu Ya'la and al-Tabarani recorded it. The narrators of Ahmad are the narrators of the Sahih, except for a woman named Hind bint al-Harith: if she is "al-Qurashiyyah" or "al-Firasiyyah", she has been used as evidence in the Sahih, and if she is "al-Khath'amiyyah", then I do not know her.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب التوبة / 17542