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.