Historically, slavery has been regulated, supported, or opposed on religious grounds. In Judaism, slaves were given a range of treatments and protections. They were to be treated as an extended family with certain protections, and they could be freed. They were property but could also own material goods. Early Islamic texts encourage kindness towards slaves and manumission, while recognizing slavery as an institution and permitting enslavement of non-Muslims imprisoned or bought beyond the borders of Islamic rule. Children born to slaves were also considered legally as slaves.