Hazrat Sha'bi (may Allah have mercy on him) said: If there are four witnesses, they save themselves from the hadd, and the hadd will be imposed on the woman. Ibrahim (may Allah have mercy on him) said: The husband should perform li'an and the hadd will be imposed on all three.
Hadith Referenceسنن سعید بن منصور / كتاب الطلاق / 2759
Hadith Takhrij«أخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 1581، وعبد الرزاق فى «مصنفه» برقم: 13367، وابن أبى شيبة فى «مصنفه» برقم: 29293»