Hebrews 5:7-10 NLT

7 While Jesus was here on earth, he offered prayers and pleadings, with a loud cry and tears, to the one who could rescue him from death. And God heard his prayers because of his deep reverence for God.
8 Even though Jesus was God’s Son, he learned obedience from the things he suffered.
9 In this way, God qualified him as a perfect High Priest, and he became the source of eternal salvation for all those who obey him.
10 And God designated him to be a High Priest in the order of Melchizedek.