Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) says regarding this verse: It is abrogated. And the exegetes have interpreted it as testimony by oath, just as the oaths of the two spouses who perform li'an are called testimony.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشهادات / 20622