Sure An-Noor

24:8

وَيَدْرَؤُا۟ عَنْهَا ٱلْعَذَابَ أَن تَشْهَدَ أَرْبَعَ شَهَٰدَٰتٍۭ بِٱللَّهِ ۙ إِنَّهُۥ لَمِنَ ٱلْكَٰذِبِينَ

Und es wehrt von ihr die Strafe ab, daß sie viermal bei Allah bezeugt, er gehöre wahrlich zu den Lügnern,

Tafsir 24:8

Through this she will be deserving of the fixed punishment for adultery. She will repel this fixed punishment by testifying by Allah four times: that he is lying in what he has accused her of.