Paul reminds the Galatian believers that even Abraham received righteousness by faith and not by the law.
God saw Abraham's faith in God, so then God considered Abraham righteous.