Leviticus 25:46 NIV

46 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.