Galatians 3:4-5
4 You have suffered in many ways as believers. Surely this could not be without any good purpose.
5 God gives you the gift of his Spirit. He also does powerful miracles among you. But he does not do these things because you obey the rules of his Law. No, he does them because you believed the message about Christ.