And of His signs is that He created for you from yourselves mates that you may find tranquillity in them; and He placed between you affection and mercy. Indeed in that are signs for a people who give thought.
The following excerpt is taken from “The Study Quran” under the commentary of the above verse:
That God made for human beings mates from among yourselves (or “from your souls”; cf. 16:72; 35:11; 42:11; 78:8) is also understood to mean “from yourselves” when seen as an allusion to the creation of Eve from Adam’s rib (IK, Ṭ), though some commentators are skeptical of this association, feeling it relies too heavily on the Biblical tradition (see Genesis 2:21–23). A direct account of Eve’s creation is not found in the Quran, only in the Ḥadīth literature; see 4:1c. Although many understand the present verse as an address to men, telling them of the benefits to be found in their wives (Aj, IK, R), viewed in a broader Quranic context, especially in relation to those verses that state that God created human beings from a single soul (4:1; 6:98, 7:189, 31:28, 39:6) and its mate from that same soul (see 7:189c and 39:6), it is most likely an address to both men and women, telling of the manner in which God has extended His own Love and Mercy to them through the love and mercy that they manifest toward one another. In this sense, the purpose of marriage is not limited to producing children; it also represents a spiritual good in and of itself and a means by which men and women can encounter God’s Love and Mercy in each other. In this vein, the Prophet is reported to have said, “The believer whose faith is most complete is the one whose character is the best; and the best among you are those who are best to their wives.”
Nasr, Hossein (2015). Study Quran. http://www.islamicweblibrary.com/wp-content/uploads/2020/04/TheStudyQuran.pdf