Sayyiduna Abu Hurairah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "A woman is like a rib (crooked); if you try to straighten her, you will break her, and if you benefit from her while she is crooked, you will remain in benefit."
Brief Explanation
(Commentary on Hadith 2258)
In this hadith, "breaking" refers to giving divorce.
This hadith also commands good treatment and good companionship with women, and it encourages overlooking and forgiving their minor faults and shortcomings, and emphasizes bearing with their weaknesses and inappropriate actions.
(Sharh Bulugh al-Maram by Shaykh Safiur Rahman Mubarakpuri rahimahullah).