1- Have taqwa and iḥsân
Know that you are responsible for your end of the marriage, regardless of how the other party treats you. Fulfill your wife’s rights without demanding yours first, and know that you seek Allah’s Pleasure over anyone else’s. Do your job with excellence, and don’t make it conditional. Iḥsân is not merely to worship in the ritual sense, but to conduct oneself in general with an awareness that Allah is Al-Raqîb (the Ever-Watchful), and to fulfill one’s duties in the best of manners.
Then he (Jibrîl) said, “Inform me about iḥsân.” He (the Messenger of Allah) answered, “It is that you should serve Allah as though you could see Him, for though you cannot see Him yet (know that) He sees you. (Muslim)
2- Be friends before you become spouses
That might sound odd (or not) – but we often put so much pressure on ourselves to fulfill a role (husband/wife), that we forget to get to know each other as friends first. Every marriage will go through ups and downs, intimately and otherwise… and you’ll be surprised to realize how much having a solid, sincere friendship can pull you through the hard times.
One example of RasûlAllah’s “friendship” with his wives is his relationship with Sawdah bint Zamʿah. She was the first woman whom he married after the death of Khadijah, and although she was considered to be elderly and not as beautiful as the other women whom he would later marry, their relationship was one of camaraderie, confidence, and laughter.