Think about where Naomi and Ruth were at the beginning of the book of Ruth. Ruth was a Moabite idol worshipper. Naomi was following her husband to Moab to escape a famine. However, when they did this and their sons married Moabite women (one of them being Ruth), they were getting out of the will of God.