Psalm 27 has no reference to time in the title (cf. Psalm 102, read the study of Psalm 102). However, after reading through this Psalm, similarities to the circumstances of En-Gedi and Adullam (1 Samuel 21-24) are evident where David was being pursued by friends (verse 12) and where his family met with him (verse 10).
Verse 1-David expresses his confidence in God, even though the situation is not hopeful. We have no need to fear because God is sovereign. He allows the circumstances for His glory. When we can confidently believe that, our lives will be shaped by His purpose not our fear. Fear comes to us when we respond emotionally, without correct knowledge, to a situation. What area of your life do you have fear? What is it about God you doubt?
Verses 2-3-David expresses not fear but confidence in an omnipotent God. Do we?
Verses 4-6-David has confidence that God will allow him to be with Him in His holy temple. God will deliver him. Would that be a prayer of yours? God, bring me through this week that I may stand and praise You at church on Sunday.
Verses 7-10-David is expressing his desire to know God better. He expresses his confidence in God not in humanity because he knows people offer conditional acceptance while God offers unconditional acceptance. The reference to father and mother relates to his father and mother joining him and being sent to safety in 1 Samuel 22.3. Even though they did not reject him, they could have because they are human.
Verses 11-12-David is facing danger from those he knows due to the adversaries being false witnesses and not an enemy nation. Could this be a reference to Doeg from 1 Samuel 22? He asks for God to give him a straight path. He is approaching God and seeking God. Remember that God promises a level path to all who seek Him and not their own ways (Proverbs 3.5-6)
Verses 13-14-David maintains his hope. He knows if he waits for the Lord to do His work, all will be good. These verses should remind you of Joshua 1, Isaiah 40, and Psalm 103.
What confidence do you have in God? Is He truly God in whom we seek refuge and of whom we worship? Or, is He something less than He claims to be? Who is He in your life?