All of the following come directly from the New International Version of the Bible. It's the word of God, you know...
Your male and female slaves are to come from the nations around you; from them you may buy slaves. You may also buy some of the temporary residents living among you and members of their clans born in your country, and they will become your property. You can will them to your children as inherited property and can make them slaves for life, but you must not rule over your fellow Israelites ruthlessly.
This is what the LORD Almighty says: ‘I will punish the Amalekites for what they did to Israel when they waylaid them as they came up from Egypt. Now go, attack the Amalekites and totally destroy everything that belongs to them. Do not spare them; put to death men and women, children and infants, cattle and sheep, camels and donkeys.
Now kill all the boys. And kill every woman who has slept with a man, but save for yourselves every girl who has never slept with a man.
If your very own brother, or your son or daughter, or the wife you love, or your closest friend secretly entices you, saying, “Let us go and worship other gods” (gods that neither you nor your fathers have known, gods of the peoples around you, whether near or far, from one end of the land to the other), do not yield to him or listen to him. Show him no pity. Do not spare him or shield him. You must certainly put him to death. Your hand must be the first in putting him to death, and then the hands of all the people. Stone him to death, because he tried to turn you away from the LORD your God, who brought you out of Egypt, out of the land of slavery. Then all Israel will hear and be afraid, and no one among you will do such an evil thing again.
But those enemies of mine who did not want me to be king over them—bring them here and kill them in front of me.