It is narrated from Hazrat Aamir Sha'bi (may Allah have mercy on him) that a woman said: I have sworn strict oaths that I will not marry after my husband. So Sha'bi (may Allah have mercy on him) said: "Give precedence to what Allah has made lawful over what is forbidden."
Hadith Referenceسنن سعید بن منصور / كتاب النكاح / 2232