Joshua 20:9

9 These were the cities selected for all the people of Isra'el and for the foreigner living among them, so that anyone who kills any person by mistake could flee there and not die at the hand of the next-of-kin avenger prior to standing trial before the community.