It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that, concerning a man who marries a woman for the purpose of making her lawful (for her former husband), he said: "Both of them are fornicators, even if they remain (together) for ten years or twenty years, provided it is known that he married her for that very purpose."
Al-Hakim Abu Abdullah al-Hafiz recorded that a man asked Sayyiduna Ibn Umar (may Allah be pleased with them both) about a man who divorced his wife three times, and then his brother, without consulting him (the first husband), married that woman merely in order to make her lawful for his brother: would she become lawful for the first husband? He (may Allah be pleased with them both) said: "No; rather, the only (valid) marriage is one made with desire and genuine wish. In the blessed time of the Messenger of Allah (peace and blessings be upon him), we used to count this (kind of marriage) as fornication." Imam al-Bayhaqi also recorded it through Imam al-Hakim.
It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Allah Almighty has cursed both the one who performs halalah and the one for whom halalah is performed."
Imam al-Hakim Abu Abdullah al-Hafiz recorded this hadith through the route of Abu al-Abbas Muhammad bin Ya'qub and Muhammad bin Ishaq from Mu'alla bin Mansur, and Imam al-Bayhaqi also recorded it in his Sunan through Imam al-Hakim. I (the author) say: This hadith has a supporting narration (shahid) from the hadith of Sayyiduna Ali bin Abi Talib (may Allah be pleased with him), which the authors of the four Sunan recorded and which has already passed in the chapter on usury (riba). Also, Imam Abu Dawud and Imam al-Nasa'i recorded it from the hadith of Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him), and Imam Ibn Majah, Imam al-Hakim and Imam al-Bayhaqi from the hadith of Sayyiduna Uqbah bin Amir (may Allah be pleased with him).