Aslam

Surah An-Nur — 24:8
وَيَدۡرَؤُاْ عَنۡهَا ٱلۡعَذَابَ أَن تَشۡهَدَ أَرۡبَعَ شَهَٰدَٰتِۭ بِٱللَّهِ إِنَّهُۥ لَمِنَ ٱلۡكَٰذِبِينَ
For her to be spared the punishment, she must swear four times by Allah that he is telling a lie,

Commentary

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.

Read Tafsir Ibn Kathir