The verse you're thinking of is James 1:2-3:
"Consider it pure joy, my brothers and sisters, whenever you face trials of many kinds, because you know that the testing of your faith produces perseverance."
So, to directly answer your question, the phrase is very close to "Consider it pure joy... whenever you face trials of many kinds." While the phrase you used captures the sentiment, the wording "divers things" isn't quite how it's usually translated in modern Bibles. "Trials of many kinds" or "various trials" are more common translations of the original Greek.