Deuteronomy 5:14
5:14 but the seventh day is the Sabbath of the Lord your God. On that day you must not do any work, you, your son, your daughter, your male slave, your female slave, your ox, your donkey, any other animal, or the foreigner who lives with you, so that your male and female slaves, like yourself, may have rest.
Deuteronomy 22:2
22:2 If the owner does not live near you or you do not know who the owner is, then you must corral the animal at your house and let it stay with you until the owner looks for it; then you must return it to him.