"To David, the intelligent one, fortunate is the one who is forgiven of sin. This is what the verse says (Proverbs 15:24), 'The path of life leads upward for the wise.' One who looks upward, what is written about him is that the path of life leads upward for the wise. The sons of Korach who looked upward were saved, as it says (Psalm 34:6), 'Look to Him and be radiant.'
But their father, who did not look upward, went down below, as it says (Numbers 16:33), 'They went down alive into Sheol.' Similarly, with David, who looked upward, he was saved, as it says, 'To David, the intelligent one.' You also find this with Nebuchadnezzar, as it says (Daniel 4:34), 'I raised my eyes to heaven.' What about the wicked who are obligated to God?
When they look upward, God forgives them. For Israel, who are the children of Abraham, Isaac, and Jacob, if they look up even more so. David said, 'I look upward,' as it says, 'To David, the intelligent one.' And one who looks upward is covered for sin.
It also says (1 Samuel 18:14), 'David had success in all his endeavors, for the Lord was with him.' And it says (1 Samuel 18:15), 'Saul saw that he was very successful, and he was afraid of him.' Because he was successful, he was covered for sin, as he would desist from his actions and confess before God. As it says (Psalm 32:5), 'I acknowledged my sin to You, and I did not conceal my iniquity.'"...