Judges 10:15
And the children of Israel said unto the LORD, We have sinned: do thou unto us whatsoever seemeth good unto thee; deliver us only, we pray thee, this day. And the children of Israel said unto the LORD, We have sinned: do thou unto us whatsoever seemeth good unto thee; deliver us only, we pray thee, this day.
The verse is Israel's cry for help after its own idolatry had brought suffering upon it, under Ammonite oppression. It is a definite, specific confession in which Israel names its own sin. In it Israel surrenders to whatever judgment or punishment God sees as good and right, while begging only for deliverance that day, for present mercy. The people knew they deserved divine judgment and were willing to suffer it if they might be forgiven and restored to God's favor.
True confession is proved genuine only when followed by action in harmony with prayer, putting away foreign gods and serving the Lord, a resolute turning away from evil. In this sense the confession was sincere repentance, which God heard so that He began to deliver them. Yet distress and confession alone did not amount to true repentance, because the people mourned the suffering their sins had caused rather than that they had dishonored God. Such returning to God in misery grieves God's loving heart for Israel.