Midrash Rabbah, in Cohen, Joshua and Judges, p. 258.