Hannah, much like Job was being tormented by her husband's other wife because Hannah could not have kids. Hannah's buttons were not just being pushed they were being smashed to the point that Hannah would tremble and was unable to eat. Even though her husband loved her very much, it wasn't comforting to her due to the harassment from his other wife. So one year when they went to go make the offerings Hannah went to the tabernacle and poured out her heart to God in prayer. Go d had been waiting to hear from her the desires of her heart. He was the One that kept her from getting pregnant and after hearing from her, He opened her womb and she finally became the mother of Samuel.
Not always does God give us what we want when we are at the end of our rope, sometimes it is to conform us to His will. In the garden Jesus had asked Peter, James and John to pray with Him, yet they couldn't stay awake. Jesus knew what was ahead of Him and His humanity was not looking forward to it. He even prayed that if there was another way to achieve the same outcome let it be done. He was so stressed from what was about to happen that He was sweating drops of blood. He knew that His human desires was not what was important and what was ahead of Him was the only way to reconcile man back into a relationship with God, so He surrendered to the will of God. This meant He would be arrested, His disciples would abandon Him, Peter would deny Him three times that night, He would be beaten and crucified all to bring the glory to God on the morning of His resurrection.
With Jesus being our ultimate example on how to live, let's look at what we can learn from Him about going through trials.
1) Take it to God in prayer. Tell Him what is going on and how you feel about it.
2) Surrender to the will of God. By doing so you are placing your trust in Him knowing that in the end it will work out for your good. This has to be the hardest point because it might mean things will get worse before they get better and when you are already hurting that would be the lasting that you want.
3) When the trial is over you will be able to give God the glory and use it to bring glory to Him when you share with others what He did for you.
Trials are never fun to go through but keeping our focus on God, in prayer and surrender to His will not ours can we make it through bringing glory to Him.