David was losing hope, caught in paralyzing fear and deep depression. At times we feel caught in deepening depression, and we are unable to pull ourselves out. At those times we can come to the Lord and, like David, express our true feelings. Then we will find help as we remember his works (Psa 143:5), reach out to him in prayer (Psa 143:6), trust him (Psa 143:8), and seek to do his will (Psa 143:10).
Psalms 143:10
David's prayer was to be taught to do God's will, not his own. A prayer for guidance is self-centered if it doesn't recognize God's power to redirect our lives. Asking God to restructure our priorities awakens our minds and stirs our will.