When Joshua learned of the defeat of his army at Ai, he tore his garments, put dust on his head, and lay before the ark.