Hazrat Umar (may Allah be pleased with him) said that if the one who slanders repents, then accept his testimony.