Hadithcore
Mishkat al-Masabih, 2805

Abu Huraira reported the Prophet (ﷺ) as saying, “Two people must separate only by mutual consent.” Abu Dawud transmitted it.

وَعَنْ أَبِي هُرَيْرَةَ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «لَا يَتَفَرَّقَنَّ اثْنَانِ إِلَّا عنْ تراضٍ» . رَوَاهُ أَبُو دَاوُد

References1 variant
In-Book Reference
Book 11, Hadith 44