i fully understand why David prayed for God to create in him a clean heart and renew a right spirit within him. sometimes, the greatest battle is not with the people around us but with what is happening inside us. you can have a good heart and still need God to work on your attitude, your thoughts, your reactions and the things you struggle to control.
Have I not commanded you? Be strong and of good courage; do not be afraid, nor be dismayed, for the LORD your God is with you wherever you go - Joshua 1:9