"Looking forward with prophetic vision to the perilous times into which the church of Christ was to enter, the apostle exhorted the believers to steadfastness in the face of trial and suffering. “Beloved,” he wrote, “think it not strange concerning the fiery trial which is to try you.” AA 524.1"
"Beloved, think it not strange concerning the fiery trial which is to try you, as though some strange thing happened unto you:"
EGW directly quotes 1 Peter 4:12.
"Trial is part of the education given in the school of Christ, to purify God's children from the dross of earthliness. It is because God is leading His children that trying experiences come to them. Trials and obstacles are His chosen methods of discipline, and His appointed conditions of success. He who reads the hearts of men knows their weaknesses better than they themselves can know them. He sees that some have qualifications which, if rightly directed, could be used in the advancement of His work. In His providence He brings these souls into different positions and varied circumstances, that they may discover the defects that are concealed from their own knowledge. He gives them opportunity to overcome these defects and to fit themselves for service. Often He permits the fires of affliction to burn, that they may be purified. AA 524.2"
"Knowing this, that the trying of your faith worketh patience."
Both passages discuss the idea that trials refine faith and produce positive qualities. While not a direct quote, the concept aligns.
"For whom the Lord loveth he chasteneth, and scourgeth every son whom he receiveth."
Both passages connect suffering/trials with God's love and discipline. The EGW passage expands on the purpose of these trials.
"and greater strength to carry forward the triumphs of the cross. AA 524.3"
"Now thanks be unto God, which always causeth us to triumph in Christ, and maketh manifest the savour of his knowledge by us in every place."
Both passages speak of triumph, though the EGW passage is less direct and more general. The connection is present but not overwhelming.