In my marriage counseling practice I periodically hear remarks like this which always upset me because they amount to people blaming God for their own bad judgment.Even worse,the people who blame God for their bad relationships almost always have violated one of the following clearly stated set of Bible instructions:
2 Corinthians 6:14-15
14 Stay away from people who are not followers of the Lord! Can someone who is good get along with someone who is evil? Are light and darkness the same? 15 Is Christ a friend of Satan? Can people who follow the Lord have anything in common with those who don't?
11 So He said to them, “Whoever divorces his wife and marries another commits adultery against her. 12 And if a woman divorces her husband and marries another, she commits adultery.”
34 Jesus answered and said to them, “The sons of this age marry and are given in marriage. 35 But those who are counted worthy to attain that age, and the resurrection from the dead, neither marry nor are given in marriage; 36 nor can they die anymore, for they are equal to the angels and are sons of God, being sons of the resurrection.
As far as getting out of bad relationships,the Bible has salvation guaranteeing instruction to easily accomplish that .
Matthew 19:29 (New King James Version)
29 And everyone who has left houses or brothers or sisters or father or mother or wife or children or lands, for My name’s sake, shall receive a hundredfold, and inherit eternal life.