Some Psalms are simply songs of praise and worship and glory to God. Some are just calls for mercy, for help, for rescue. And some are a combination of both. Such is Psalm 28. Hear David’s cries for mercy from the evil intentions of the wicked:
Psalm 28:1-5 (ESV)
To you, O Lord, I call;
my rock, be not deaf to me,
lest, if you be silent to me,
I become like those who go down to the pit.
 Hear the voice of my pleas for mercy,
when I cry to you for help,
when I lift up my hands
toward your most holy sanctuary.
 Do not drag me off with the wicked,
with the workers of evil,
who speak peace with their neighbors
while evil is in their hearts.
 Give to them according to their work
and according to the evil of their deeds;
give to them according to the work of their hands;
render them their due reward.
 Because they do not regard the works of the Lord
or the work of his hands,
he will tear them down and build them up no more.
What is happening in David’s life that has cause him to write such impassioned stuff? We do not know. But David is in desperate straits and he knows that only God can rescue him.
Now consider verses 6-9
Blessed be the Lord!
for he has heard the voice of my pleas for mercy.
 The Lord is my strength and my shield;
in him my heart trusts, and I am helped;
my heart exults,
and with my song I give thanks to him.
 The Lord is the strength of his people;
he is the saving refuge of his anointed.
 Oh, save your people and bless your heritage!
Be their shepherd and carry them forever.
What has happened between verses 5 and 6? God has answered his prayer. How much time transpired? We have no idea. Did David write the first half while in trouble and then finish it after God answered him? We do not know.
There is much to learn from this but we simply note this one point here. David was just as God focussed in his trouble as he was in his non-trouble. His good times did not cause him to forget God. So many people who call themselves Christians pray much when times are hard and then forget to thank and praise God when He answers those prayers. We need the attitude of Job when he asked “Shall we accept good from God and not evil?”. He did not mean moral evil. He meant things that we do not like. He had just lost his possessions and his children. And he continued to worship God. And in all these things, the text tells us, Job did not sin with his mouth, meaning that his assessment of things was right. We do not just accept the good things form God. God knows best and He is always to be worshipped. Trouble does not mean that we are loved less or forgotten by God.
Let us not just call out to God when we feel life is too much for us to handle. Life is always too much for us to handle and God is to be worshipped and thanked and sought out in all times, no matter how good or bad.