From the words of the prophet that he cited, he draws a conclusion. There it is said: "The eyes of the Lord are upon the righteous, and the face of the Lord is against those who do evil" (1 Pet. 3:12), and the apostle adds to this: if you live in this way, then God will be gracious and merciful toward you. And in such a situation, who will harm you? For all things are in His hand, "life and death" (Wis. 16:13). But since some considered sufferings for the faith to be an evil, the apostle Peter, in order to correct such an opinion, says: do not consider this an evil; on the contrary, consider i...t a pledge of blessedness. For fear from men deserves no attention, but is short-lived. For if the eyes of the Lord are turned toward the righteous and His ears toward their prayer, but the face of the Lord is against those who do evil, threatening the wicked with destruction, then if this were an evil, the Giver of good things would certainly not repay with evil our love for Him. For He brings evil upon the evil: "Tribulation and anguish upon every soul of man who does evil" (Rom. 2:9); therefore, afflictions for the sake of piety are not an evil. Together with Isaiah (Isa. 8:13), he commands to sanctify the Lord in our hearts, that is, not to exalt oneself through visible deeds, but in the secret chamber of the heart to accomplish the sanctification of the Lord, which consists in turning away from defilements, that is, from the evil customs of the pagans. Thus sanctify Him. And He is sanctified through your good conduct, when other people glorify Him, just as the God-Man Himself commands: "So let your light shine before men, that they may see your good works" (Matt. 5:16).
Source: Commentary on 1 Peter