Jami` at-Tirmidhi, Book 47, Hadith 3314 (In-Book)

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."

حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا أَبُو دَاوُدَ الطَّيَالِسِيُّ، حَدَّثَنَا سُلَيْمَانُ بْنُ مُعَاذٍ، عَنْ سِمَاكٍ، عَنْ عِكْرِمَةَ، عَنِ ابْنِ عَبَّاسٍ، قَالَ خَشِيَتْ سَوْدَةُ أَنْ يُطَلِّقَهَا، النَّبِيُّ صلى الله عليه وسلم فَقَالَتْ لاَ تُطَلِّقْنِي وَأَمْسِكْنِي وَاجْعَلْ يَوْمِي لِعَائِشَةَ فَفَعَلَ فَنَزَلَتْ ‏:‏ ‏(‏ فَلاَ جُنَاحَ عَلَيْهِمَا أَنْ يُصْلِحَا بَيْنَهُمَا صُلْحًا وَالصُّلْحُ خَيْرٌ ‏)‏ ‏.‏ فَمَا اصْطَلَحَا عَلَيْهِ مِنْ شَيْءٍ فَهُوَ جَائِزٌ كَأَنَّهُ مِنْ قَوْلِ ابْنِ عَبَّاسٍ ‏.‏ قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ غَرِيبٌ ‏.‏

sunnah.com