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.