Hebrews 2:18

18 Because he himself suffered when he was tempted, he is able to help those who are being tempted.

Read Hebrews 2:18 Using Other Translations

For in that he himself hath suffered being tempted, he is able to succour them that are tempted.
For because he himself has suffered when tempted, he is able to help those who are being tempted.
Since he himself has gone through suffering and testing, he is able to help us when we are being tested.