James 1:2-4 CSB
[2] Consider it a great joy, my brothers and sisters, whenever you experience various trials, [3] because you know that the testing of your faith produces endurance. [4] And let endurance have its full effect, so that you may be mature and complete, lacking nothing.
https://bible.com/bible/1713/jas.1.2-4.CSB
