James 1:2-4:
My brethren, count it all joy when ye fall into divers temptations;
Knowing this, that the trying of your faith worketh patience.
But let patience have her perfect work, that ye may be perfect and entire, wanting nothing.
See also:
Objection: We Are Supposed to Glory in Tribulations and Count Them All Joy (Romans 5:3, James 1:2-4)
Objection: James’s Command Was for the Dispersed Jews, Not All Christians Throughout Time