III. The God of infinite mercy took pity on them in their distresses, though they had brought themselves into them by their own sin and folly, and wrought deliverance for them. Nevertheless, though their trouble was the punishment of their sin and the accomplishment of God's word, yet they were in process of time saved out of their trouble, v. 16-18. Here observe, 1. The inducement of their deliverance. It came purely from God's pity and tender compassion; the reason was fetched from within himself. It is not said, It repented them because of their iniquities (for it appears, v. 17, that many of them continued unreformed), but, It repented the Lord because of their groanings; though it is not so much the burden of sin as the burden of affliction that they are said to groan under. It is true they deserved to perish for ever under his curse, yet, this being the day of his patience and our probation, he does not stir up all his wrath. He might in justice have abandoned them, but he could not for pity do it. 2. The instruments of their deliverance. God did not send angels from heaven to rescue them, nor bring in any foreign power to their aid, but raised up judges from among themselves, as there was occasion, men to whom God gave extraordinary qualifications for, and calls to, that special service for which they were designed, which was to reform and deliver Israel, and whose great attempts he crowned with wonderful success: The Lord was with the judges when he raised them up, and so they became saviours. Observe, (1.) In the days of the greatest degeneracy and distress of the church there shall be some whom God will either find or make to redress its grievances and set things to rights. (2.) God must be acknowledged in the seasonable rising up of useful men for public service. He endues men with wisdom and courage, gives them hearts to act and venture. All that are in any way the blessings of their country must be looked upon as the gifts of God. (3.) Whom God calls he will own, and give them his presence; whom he raises up he will be with. (4.) The judges of a land are its saviours.