Ibrahim Nakha'i (may Allah have mercy on him) said: "The woman should be returned to her first husband and the inheritance taken from the second husband should be returned."