When Jesus told us to be holy, He wasn't saying to be perfect. We can't be. He was telling us to be set apart for God's purposes.
He was tempted like us. But He didn't sin.
Finally, brothers and sisters, whatever is true, whatever is noble, whatever is right, whatever is pure, whatever is lovely, whatever is admirable—if anything is excellent or praiseworthy—think about such things. - Philippians 4:8
The kindness of God will lead you to repentance