It was narrated from 'Umar that the Prophet -'Amr (one of the narrators) said: "The Messenger of Allah- had divorced Hafsah, then he took her back". And Allah knows best.
The teachings of this hadith are clear; marriage is a sacred bond between two people and it should not be taken lightly or broken without due consideration. Even if there are disagreements between spouses, they must strive to find common ground and work together towards resolving their differences instead of opting for divorce right away.