Galatians 3:22 in Greek reads: ἀλλὰ συνέκλεισεν ἡ γραφὴ τὰ πάντα ὑπὸ ἁμαρτίαν, ἵνα ἡ ἐπαγγελία ἐκ πίστεως Ἰησοῦ Χριστοῦ δοθῇ τοῖς πιστεύουσιν.
We can translate this as ‘But the Scriptures shut up everything under sin, so that the promise from πίστεως Ἰησοῦ Χριστοῦ might be given to those who are faithful.’