I will praise the Lord according to his righteousness
Or on account of it, as it was displayed in vindicating the innocent, and punishing the wicked; so Pharaoh having ordered male infants of the Hebrews to be drowned, and he himself and his host in righteous judgment being drowned in the Red sea; Moses and the children of Israel sung a song, as the psalmist here;
and will sing praise to the name of the Lord most high;
whose name is Jehovah, and is the most High over all the earth; and who had now, according to the psalmist's request, ( Psalms 7:6 Psalms 7:7 ) ; arose and lifted up himself, and returned on high, and had shown himself to be above all David's enemies, and had sat on the throne judging right.