The Ruling on False Testimony
Giving false testimony is a major sin. Whoever repents and firmly resolves not to give false testimony again, if he is sincere in that, and returns to those people whatever rights of theirs were lost or made lawful because of his testimony, then his repentance will be accepted. The saying of Allah is:
«وَهُوَ الَّذِي يَقْبَلُ التَّوْبَةَ عَنْ عِبَادِهِ وَيَعْفُو عَنِ السَّيِّئَاتِ وَيَعْلَمُ مَا تَفْعَلُونَ»
Reference: Al-Shura: 25
“And it is He who accepts repentance from His servants and pardons evil deeds, and He knows what you do.”
Reference: Al-Lajnah al-Da’imah: 4271