It was the ancient honour of Israel that they were a praying people. Jehoahaz, their king, in his distress, besought the Lord; applied himself for help, but not to the calves; what help could they give him? He sought the Lord. See how swift God is to show mercy; how ready to hear prayer; how willing to find a reason to be gracious; else he would not look so far back as the ancient covenant Israel had so often broken, and forfeited. Let this invite and engage us for ever to him; and encourage even those who have forsaken him, to return and repent; for there is forgiveness with him, that he may be feared. And if the Lord answer the mere cry of distress for temporal relief, much more will he regard the prayer of faith for spiritual blessings.
SDA Bible Commentary (limited)
Volume 1-7
4. Hearkened unto him. The Lord is a God of mercy and goodness. He is always willing to forgive when sinners repent and turn to Him. When Jehoahaz turned to God, the Lord in His kindness directed events so as to grant Israel deliverance.