Not sure why you listed this question under:
"How to write poetry"?
As for getting a "good wife" only (you) know what (you) mean by good. Everyone has their own "must have list" or "mate selection process" to determine who is "marriage material".
1. Become a "me" expert
In other words do some serious introspective thinking to figure out what traits you need or want in a mate for life. Until you figure that out you'll continue to allow "impulsive connections" and "happenstance" to dictate your relationship choices.
That's the equivalent of going shopping without a list!
2. Create a profile of your ideal mate
You can be as granular as you wish. Does she live in the city or suburbs, work out a gym, shop at upscale department stores/malls or prefers Walmart or Target? What are her hobbies/interests? career? Attend church? Go out to nightclubs, sports bars, jog on the beach/in a park? enjoys museums?
After you have the image of your ideal mate imagine (you) being them! Listing what (you) want is the easy part!
If you were (her) would you want you? Be honest! If the answer is no then you need to go about cultivating the traits you believe this type of person would be attracted to. Like attracts like.
Don't expect to sit next to the moon unless (you) are a star!
4. Be there!
The only way to meet anyone is to be where they are!
You have to "run in the same circles".
The other alternative is to rely on luck or a "chance meeting". If you were detailed enough in step 2 then you have a good starting point as to where to meet someone you desire. Another option is to join a few groups on Meetup.com
This site isn't for dating per se but there are bound to be single people who belong to various hobby and interest groups listed on the site. Groups usually meet once or twice a week which affords you the opportunity to gradually get to know someone.
Of course there are introductions through friends/family, taking classes, online dating sites and apps (note there are niche sites)