(Hebrews 5:8-9- And even though Jesus was God’s Son, He had to learn from experience what it was like to obey when obeying meant suffering. It was after He had proved Himself perfect in this experience that Jesus became the Giver of eternal salvation to all those who obey Him.)
In all of Jesus' suffering He was being tested.
So Jesus was fasting and He could've easily gave in to Satan, I'm pretty sure He was hungry and 40 days is a long time!
Just think of 1 thing you had to let go of in order to obey God. For me it was my relationship with my ex of a year. As much as I didn't want to let go I had to because God told me to. I tried so hard to ignore God but all the signs were there and He was even having people tell me I can't be unequally yoked. (2 Corinthians 6:14- Be ye not unequally yoked together with unbelievers: for what fellowship hath righteousness with unrighteousness? and what communion hath light with darkness?) I should've obeyed God the first time but honestly it was hard for me to let go. It wasn't until God told me that He wasn't going to tell me again that I knew I had to end it. So in some way whatever you had to let go of you had to suffer because I'm pretty sure it was something you didn't want to do at the time. Someone the Lord used me to help bring back to Him had argued with a friend. She realized they were never really friends and felt alone and didn't understand why it had to happen. I had seen this tweet later "Stop trying to include the people that God excluded from this chapter of your life. You'll make it without them." So I sent it to her and she said she really needed to see that and that she's been talking to God and praying about it and felt more at peace. I remember when I first got saved and I remember one Friday night I was like wow I really don't have any friends. So I prayed for God to send me some godly friends and He did! He sent so many I can't even count them all.
So how do we learn obedience through suffering?
When I first read this I actually cracked up because I related to it so much. Sometimes the Lord allows us to suffer so that we will obey Him. When your parents used to beat you they'd say "I'm only doing this because I love you" I used to not understand that as a child but when I grew up I did. When you got a beating and later on thought of doing something bad, but you remembered that beating you got before so you didn't do it. Therefore you learn obedience through suffering.
(Proverbs 29:15- Scolding and spanking a child helps him to learn. Left to himself, he brings shame to his mother.) (Proverbs 29:17- Discipline your son and he will give you happiness and peace of mind.) (Proverbs 29:19- Sometimes mere words are not enough—discipline is needed. For the words may not be heeded.)
So Jesus learned through experience what it was like when obeying meant suffering and we also learned that if Jesus came in human body and didn't sin at all because He was obedient to God and suffered way worse than us, we need to obey God even though sometimes we may suffer and that sometimes we suffer so we can learn to obedient.
Are you suffering right now because of disobedience?