All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and messenger.
Allaah, The Exalted, says (what means): {It is He who created you from one soul and created from it its mate …} [Quran 7:189] Moreover, Abu Hurayrah reported that the Prophet, sallallaahu ‘alayhi wa sallam, said: “Be kind to women, for they were created from a rib.” [Al-Bukhari and Muslim] This is the exact wording of the Hadeeth.
The rest of the details mentioned in the question are not part of the Hadeeth; it seems that they are the commentary of some scholars or preachers.
As-San‘aani said, “The intended meaning of this statement (in the Hadeeth) is that Hawaa’ (Eve), may Allaah exalt her mention, was created from Aadam’s rib.”
It is worth noting that the Hadeeth does not mean that the woman, in general, is created from her husband’s rib! Verily, both men and women are created from an ejected drop of fluid to the exclusion of Aadam (Adam) and Hawaa’
Therefore, there is no room for the mentioned misunderstanding.
Allaah Knows best.