The bible says adultery is a sin yet god was ok with Abraham getting his slave pregnant because he thought his wife couldnt have a child. There is plenty more stuff in the bible that encourages ill treatment of women.
I think regardless of our beliefs, we shouldnt blindly take advice from any book.