Read Galatians 4:7 Using Other Translations
Wherefore thou art no more a servant, but a son; and if a son, then an heir of God through Christ.
So you are no longer a slave, but a son, and if a son, then an heir through God.
Now you are no longer a slave but God’s own child. And since you are his child, God has made you his heir.