Imam al-Sha'bi (may Allah have mercy on him) used to say about the slanderer: When the flogging is finished and he declares himself a liar and retracts his statement, his testimony will be accepted.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشهادات / 20554