This Psalm, Psalm 60, comes from early in David's reign as king, after engagement in battle with Edom, referred to in 2 Samuel 8:10 and 1 Chronicles 18. Though there had been overall success, there had been difficulties too which is what this Psalm refers to. Some of those problems might have related to ongoing troubles with the house of Saul, amounting to close to civil war breaking out. The questions David puts to the Lord in verses 9 and 10 show David's perplexity as to how future victories will be accomplished if the Lord is not with His people. But, as we see in this Psalm, perplexity can be the source of heartfelt prayer.
1: Perplexing times do befall God's people 2: We are to make enquiries 3: We are confident of progress