It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he said: "Indeed, every day I say to Allah, the Mighty and Majestic, 'Astaghfirullaha wa atubu ilayh' (I seek forgiveness from Allah and repent to Him) twelve thousand times, and that (number) is in proportion to his sin," or (the narrator is unsure whether) he said: "my sin."
Ahmad bin Hanbal recorded this narration in Kitab al-Zuhd.