A Prayer of Faithful Appeal
Commentators explain that this question is not an accusation against God, but a powerful form of prayer. The psalmist appeals to God's own revealed character—that He is merciful and that His anger is temporary (Psalms 30:5). When suffering feels endless, believers can pray by reminding themselves and God of His promises, holding onto the principle that His discipline is not forever.