And they were both righteous before God
Not as the Pharisees, only righteous before men, but in the sight of God, who sees the heart, and whose judgment is according to truth; and therefore were not justified by the deeds of the law; for by them no man can be justified in the sight of God; but were made righteous through the righteousness of Christ, by which the saints were made righteous before the coming of Christ, as those after it: see ( Acts 15:11 ) ( Revelation 13:8 ) . God beheld them in his Son, as clothed with that righteousness he engaged to bring in, and as cleansed from all sin in that blood of his which was to be shed: and they appeared to him, and in the eye of his justice, and according to his law, righteous persons: though this character may also regard the internal holiness of their hearts, and the truth and sincerity of grace in them: which God, who trieth the hearts and reins of the children of men, knew, took notice of, and bore testimony to: as likewise their holy, upright walk and conversation before men, and which was observed by God, and acceptable to him, though imperfect, as arising from a principle of grace, being performed in the faith and fear of him, and with a view to his glory, and for the sake, and through the righteousness of his Son.
Walking in all the commandments and ordinances of the Lord:
this was not the matter of their righteousness before God, but the evidence of it before men: "by the commandments" are meant, all those that are of a moral nature, which regarded their duty to God and man, and which are comprehended in love to both; and by "the ordinances of the Lord", are intended the injunctions and institutions of the ceremonial law, which is called the law of commandments, contained in ordinances, which, though now abolished, were then in force: and it was right and commendable in them to observe them, who, by their "walking" in them, showed they loved them, both one and the other; esteemed them, concerning all things to be right; and had respect to them all, and observed them, and took pleasure in walking in them, which, by the grace of God, they continued to do; for walking not only shows that these commands and ordinances were a way marked out for them, but in which they took pleasure, and made progress: and were
not that they were without sin, as none are; and it appears from this chapter that Zacharias was not, see ( Luke 1:20 ) but they were so in the sight of God; as they were justified by the righteousness of Christ, so they were without fault before the throne, and unreproveable before God; and as to their moral and religious character and conduct before men, they did not indulge themselves in any known sin, but lived in all good conscience among men: nor were they remiss and negligent in the discharge of duty: they were not guilty of any notorious breach of the law of God, or of any remarkable negligence in the business of religious observances: and though they might observe enough in them to charge themselves with, and to humble themselves before God and men; yet so strict were they, in their lives and conversations, that those who were the most intimately acquainted with them, had nothing very material to blame them for.