Bulugh al-Maram 1106
وَعَنِ ابْنِ عُمَرَ أَيْضًا - أَنَّ رَسُولَ اللَّهِ - صلى الله عليه وسلم - قَالَ لِلْمُتَلَاعِنَيْنِ: «حِسَابُكُمَا عَلَى اللَّهِ تَعَالَى, أَحَدُكُمَا كَاذِبٌ, لَا سَبِيلَ لَكَ عَلَيْهَا». قَالَ: يَا رَسُولَ اللَّهِ! مَالِي? قَالَ: «إِنْ كُنْتَ صَدَقْتَ عَلَيْهَا, فَهُوَ بِمَا اسْتَحْلَلْتَ مِنْ فَرْجِهَا, وَإِنْ كُنْتَ كَذَبْتَ عَلَيْهَا, فَذَاكَ أَبْعَدُ لَكَ مِنْهَا». مُتَّفَقٌ عَلَيْهِ.
Also from Ibn ʿUmar, that the Messenger of Allah ﷺ said to the couple who had made liʿan: "Your reckoning is with Allah the Exalted. One of you is a liar. You have no way to her." He said: "O Messenger of Allah! My wealth?" He said: "If you told the truth about her, it is for what you made lawful of her private parts. And if you lied about her, then that is even further from you." Agreed upon.