King David appears in the great hall of faith for working righteousness. He did not take vengeance on his enemy and repented when he sinned.