Exodus 22:2nakhah
The robber who is caught must pay back what he stole. If he owns nothing, he must be sold as a slave to pay for what he stole. If the stolen animal is found alive with the robber, he must give the owner two animals for every animal he stole, whether it was a bull, donkey, or sheep. If a thief is killed while breaking into a house at night, the one who killed him is not guilty of murder. But if this happens during the day, he is guilty of murder.
Nehemiah 13:25nakhah
I argued with those people, put curses on them, hit some of them, and pulled out their hair. I forced them to make a promise to God, saying, "Do not let your daughters marry the sons of foreigners, and do not take the daughters of foreigners as wives for your sons or yourselves.