My soul shall make her boast in the LORD: the humble shall hear thereof, and be glad.
 I sought the LORD, and he heard me, and delivered me from all my fears.
 They looked unto him, and were lightened: and their faces were not ashamed.
 This poor man cried, and the LORD heard him, and saved him out of all his troubles. (KJV)
David was fleeing from Saul who was trying to kill him. His first stop was to say goodbye to his friend Jonathan and then he went to the Holy place where he met the priest Ahimelech in Nob.
David asked Ahimelech for bread and a sword. (It is assumed David felt he needed food and a weapon, to fight Saul). He was given 5 loafs of holy bread and the sword that David had used to cut out Goliath’s heart. He got these two items by lying to the priest.
He left Nod and headed to Achish, the king of Gath. At this point, David obviously was not thinking straight and definitely was not relying on God, but on his own flight instincts.
He was walking right into the pagan city of Philistine, which also happened to be the city of Goliath’s people.
When he reached Gath, he was recognized by the Philistines who knew him as Goliath’s killer, so he was thrown into prison.
It was probably at this point that David starting thinking about everything he had done during his quick escape. I would assume that David felt the shame of how he had left God out of the equation. David then, finally turned back to God.
It was during this time that his faith was restored. He repented of his sins and asked God to forgive him and also to help him escape.
While waiting on God, David wrote Psalm 34 and prayed and sang his Psalms. Many Philistines heard him during this time.
David realized he was in an impossible situation and began giving blessings to God, knowing He was the only one who could get him out safely. Was this Psalm written as a bribe? No, it was written from thankfulness and filled with his love and respect for God.
When David was being taken before the king, thoughts of playing the part of a man who had seizures and acting insane came to David. So when placed before King Achish this drama worked so well that he was let go and forced to leave the town.
It seems that David wrote Samuel 21 following his dismissal from Achish of Galt. In it, David is saying that no matter what happens in his life, in the good or bad times, that he will always be praising God.
David’s Psalm 34 tells us that God not only saved him, but because the pagans of Philistine had seen David singing and praying to the true God, AND that they witnessed David’s God listening to him, helping him and delivering him, some were drawn to call on God.
My Father in Heaven,
Thank you Lord. Whenever I call to you, I know you hear me. The answers or the help that I receive are not always the ones I ask for or want, but they are definitely the ones I need.
I pray those around me can see you working in my life and be witnesses of my joy, my peace and my love for you. I pray that they will hear you calling out to them, to join your family.
As soon as they open their hearts, you are there, with open arms. May I be an encouragement for people to leave the darkness and enter into your beautiful glorious light.
May I always extol your mighty name. May I always magnify you with my praises, no matter what is happening in my life because I know that you are watching over me very closely and whatever situation I’m going through, is exactly where I am supposed to be.
I am blessed that I can feel your arms around me. I am blessed that I can relax in you no matter what I’m going through. I am blessed that you love and care for me and I am so very good privileged to be your child.
I praise your mighty name Father, now and forevermore!
In the name of your son, Jesus Christ, I pray.