Sulayman ibn Amr ibn al-Ahwas reported that his father narrated to him that he observed the Farewell Pilgrimage with the Messenger of Allah (SAW) . He praised Allah and glorified Him and delivered a sermon and mentioned Allah.
The narrator while recounting the hadith related an account. He said, “Beware, I command to you to be good with the women, for, they are only (like) prisoners with you. You own nothing else over them besides that except that if they commit indecency openly, you may separate them from (your) beds and beat them, a simple beating. So, if they submit to you then do not look out for ways to hurt them.
Beware, you have rights over your wives and your wives have rights over you. As for your rights over your wives, they should not allow on your beds those whom you detest, and allow not in your homes those whom you detest. Beware, of their rights over you, do good to them in matters of their dress and their food”.
[Ibn e Majah 1851]