In our natural state we think that obedience to God will produce righteousness with God but it’s the Father that initiates a love relationship with us through grace that declares our identity as his children. We then obey because we are already righteous.