As the second Adam and the faithful Israel, Jesus resisted temptation and so can help us when we are tempted.
These two psalms together provide a biblical view of the family.
Although the first anointed king tried to kill the second one, the Lord protected his anointed, as he always does.