Show me your ways, Lord,
teach me your paths.
Guide me in your truth and teach me,
for you are God my Savior,
and my hope is in you all day long.
Remember, Lord, your great mercy and love,
for they are from of old.
Do not remember the sins of my youth
and my rebellious ways;
according to your love remember me,
for you, Lord, are good.
Good and upright is the Lord;
therefore he instructs sinners in his ways.
He guides the humble in what is right
and teaches them his way.
All the ways of the Lord are loving and faithful
toward those who keep the demands of his covenant.
For the sake of your name, Lord,
forgive my iniquity, though it is great.
It's the humble of heart that God guides into His truth. He teaches His ways to those who are sinners and rebellious (for who else is there to teach? And without God instructing us in what is right, how could we not be sinful and rebellious?).
King David was a 'man after God's own heart' probably in part because he was well aware of his rebellion against God, but was broken and contrite before Him. To be a man after God's own heart, then, is not pretending to be perfect, but to be honest and humble.
Thank you, Father, for your good, upright, loving and faithful ways to those who, though plagued with sin, are humble of heart and understand their desperate need for you. To the 'poor in spirit' You give as an inheritance the Kingdom of Heaven (Matthew 5:3). For the sake of Your Name You forgive our sin. Thank You for such grace.