David sang this song to the Lord. He sang it when the Lord had saved him from Saul and all his other enemies.