24:12 Sent the hornet - When they were actually engaged in battle with the Canaanites. These dreadful swarms which first appeared in their war with Sihon and Og, tormented them with their stings and terrified them with their noise, so that they became an easy prey to Israel. God had promised to do this for them, Exod 23:27,28, and here Joshua observes the fulfilling the promise.
24:1-14 We must never think our work for God done, till our life is done. If he lengthen out our days beyond what we expected, like those of Joshua, it is because he has some further service for us to do. He who aims at the same mind which was in Christ Jesus, will glory in bearing the last testimony to his Saviour's goodness, and in telling to all around, the obligations with which the unmerited goodness of God has bound him. The assembly came together in a solemn religious manner. Joshua spake to them in God's name, and as from him. His sermon consists of doctrine and application. The doctrinal part is a history of the great things God had done for his people, and for their fathers before them. The application of this history of God's mercies to them, is an exhortation to fear and serve God, in gratitude for his favour, and that it might be continued.