Moments of crisis and disappointment are common for anyone engaged in spiritual or public service, particularly when intense effort yields no visible results. The primary approach among commentators is that the prophet is expressing deep personal frustration over this very experience. Seeing that his rebukes fall on deaf ears and the people refuse to repent, he believes his labor has been entirely in vain [רש״י, אבן עזרא, רד״ק, מצודת דוד]. His efforts feel like an empty shell, completely devoid of purpose [מלבי״ם]. There is a subtle distinction in his experience of this struggle: there is the grueling hardship of the work itself, followed by a profound sense of total exhaustion once the work is done [מלבי״ם]. Because his mission appears to have failed, the prophet fears he will receive no compensation for his trouble, much like a laborer hired to unearth a treasure who digs endlessly but finds nothing [מצודת דוד, מלבי״ם]. Alternatively, some view this struggle not as a personal account, but as a national allegory representing the congregation of Israel. Suffering in exile, the nation feels that all its exhausting efforts have been for nothing [שד״ל].
Yet, from the depths of this despair emerges a complete shift in consciousness. The prophet realizes that the true measure of success is not found in immediate results, but in loyalty to God. He understands that his ultimate judgment and rightful compensation are completely in God's hands [אבן עזרא, ביאור שטיינזלץ]. God knows that the mission's failure stems from the stubbornness of the people, not from any lack of effort on the prophet's part. As a result, God will grant him his full reward simply for carrying out his duties faithfully, just as a hired worker receives his rightful wages [רש״י, אבן עזרא, מצודת דוד]. Furthermore, in His kindness, God steps in to complete what the prophet could not fix on his own, working through him and taking pride in his dedication [מלבי״ם, ביאור שטיינזלץ]. This divine response operates on two levels: God acts with general providence as the One who appointed the mission, and He also exercises intimate, personal providence to ensure the prophet is cared for and rewarded [מלבי״ם].
While this realization brings comfort, a bolder perspective suggests that the prophet is not finding solace at all. Instead, he is actively arguing with God, complaining that He sent him on a hopeless mission that achieved absolutely nothing [רד״ק]. On a much deeper level, however, this struggle reveals the profound secret of spiritual reward. A righteous person who is forced to abandon his spiritual work, perhaps due to illness, is not treated like a simple laborer who is only paid for a finished product. Rather, he is viewed as a devoted servant entirely dedicated to the will of his Creator. Therefore, he receives an immense, incomprehensible reward for his absolute devotion, even if he initially thought his labor was wasted [חומת אנך]. This enduring promise of reward applies equally to the Israelites in exile, who will ultimately be compensated by God for their suffering and for remaining steadfastly loyal to Him throughout their long journey [שד״ל].