Why God allows suffering according to Romans 8:28
Romans 8:28 doesn't claim suffering is good, but that God works through all circumstances, including pain, to accomplish spiritual growth for those who love him.
James 1:2–4: Joy When Faith Is Tested
James does not tell suffering people to pretend hardship is pleasant. He tells them to count it joy because God is at work through the testing, building endurance that is allowed to run its full course.