Fourthly, with regard to the investigation of the truth approved, it is added: But he, wishing to justify himself, that is, to show himself just, "because, as the Interlinear Gloss says, he thought he stood not before God but before man," according to that below in chapter 16: "You are they who justify yourselves before men, but God knows your hearts" etc. — Or, wishing to justify himself, that is, to prepare himself for justice: which is done through faith and the understanding of truth, according to that of Romans 3: "For we reckon that a man is justified by faith without the works of the La...w"; therefore, in order to understand the truth handed down, he inquires.
On account of which it is added: He said to Jesus: And who is my neighbor? so that I may understand the commandment, according to that of Hosea 10: "It is the time to seek the Lord, when he shall come who will teach you justice." Therefore he asks about the neighbor diligently, because in Scripture it is spoken of in multiple ways, namely by kinship, according to that of the Psalm: "My friends and my neighbors drew near against me and stood"; and again: "As though a neighbor and as our brother, so was I pleasing" etc. By religion: Sirach 15: "He will exalt him among his neighbors." By compassion or the showing of kindness, according to what follows below in the same chapter: "Which of these do you think was neighbor to him who fell among robbers? And he said: He who showed mercy to him." By natural likeness, according to that of Sirach 13: "Every animal loves its like, so also every man his neighbor." And Augustine says: "By the name neighbor every man is understood." — And therefore, because it was doubtful, and the understanding of neighbor was manifold, for this reason it had to be investigated and inquired into, not only on account of that lawyer, but for the benefit of the faithful, by whom the aforesaid commandment had to be fulfilled, which is the consummation of the commandments.
Source: Commentary on Luke, Chapter 10