Narrated Ibn 'Abbas:
Sawdah feared that the Prophet (ﷺ) was going to divorce her, so she said: 'Do not divorce me, but keep me and give my day to 'Aishah.' So he (ﷺ) did so, and the following was revealed: Then there is no sin on them both if they make terms of peace between themselves, and making peace is better (4:128). So whatever they agree to make peace in something then it is permissible.