No one is perfect in God's eyes, so how can we be righteous? David's answer is found throughout this psalm.