James 1:2-4 Count it all joy when you fall into divers trials knowing the trying of your faith works patience and let patience have her perfect work that you will be perfect and lacking nothing.
The word says to rejoice in the Lord always. When the disciples were in prison for preaching the word of God. They sung praises to God and the Lord delivered them out of their situation. When we rejoice in the Lord in the middle of our battles God moves by His Spirit and changes the situations for us also.
We open the door so the Spirit can move for us when we rejoice in Him. God is always there to help you. He loves you and He will never allow more on you than you are able to stand, but He will always make a way of escape for you. Lean on Him and put your full trust in Him and rejoice in Him sing praises to Him and watch God move in the middle of the battle for you.
We can count it a Joy because God is working patience in us and patience is learning to trust God and seeing God bring us through time after time we began to know God is truly a faithful friend that sticks closer than a brother.