It is reported that Abū Ayyūb Al-Anṣārī – Allāh be pleased with him – said, “A person might do a single good deed, rely on it and forget sins that he regards insignificant, but then meet Allāh (on the Day of Judgment) with those sins surrounding him. And a man might commit a sin, but never stop fearing its consequences, until he meets Allāh safe and sound.”
Al-Ḥāfidh Ibn Ḥajr, Fatḥ Al-Bārī, references this narration to Asad b. Mūsā’s Al-Zuhd. A slightly different wording is reported by Ibn Al-Mubārak in Al-Zuhd wa Al-Raqā`iq Vol.1 p170.