God's command to slaughter the inhabitants of Canaan (which I think it what you're referring to) was a decree of judgement on a people who (in God's eyes) were wicked.
Muqdisho:Waxaa Allaha u naxariistee caawa lagu dilay magalaada Muqdisho mid ka mid ah odayaasha dhaqanka ee wax ka soo xulay xilidhaanada DFS, Oday dhaqameedka la dilay caawa ayaa waxaa lagu magacaaba