Hebrews 2:17-18
2:17 Therefore he had to be made like his brothers and sisters in every respect, so that he could become a merciful and faithful high priest in things relating to God, to make atonement for the sins of the people.
2:18 For since he himself suffered when he was tempted, he is able to help those who are tempted.
Hebrews 4:15
4:15 For we do not have a high priest incapable of sympathizing with our weaknesses, but one who has been tempted in every way just as we are, yet without sin.