Muhammad Ibn Al-Hanafīyah – Allāh have mercy on him – said:

He is not wise who does not live in a good way with the person he has no choice but to live with, until Allāh gives him relief from that [situation].

Al-Dhahabī, Siyar A’lām Al-Nubalā` 4:117 et al. Shaykh Al-Albānī graded it Sahīh in Silsilatu Al-Da’īfah 6:172, after explaining that it is not authentic as a hadīth from the Prophet – Allāh’s praise and peace be upon him.