Virtuous pagan is a concept in Christian theology that addressed the fate of the unlearned—the issue of nonbelievers who were never evangelized and consequently during their lifetime had no opportunity to recognize Christ, but nevertheless led virtuous lives, so that it seemed objectionable to consider them damned. Prominent examples of virtuous pagans are Heraclitus, Parmenides, Socrates, Plato, Aristotle, Cicero, Trajan, and Virgil.
A Christian doctrinal formulation of this concept, though not universally accepted, is known as the "Anonymous Christian" in the theology of Karl Rahner, which is analogous to teachings of the gerim toshavim in Judaism and Hanifs in Islam.[1]
Rather did he hold the position stated in the Apocalypse of Sedrach: 'there are nations which have no law, yet fulfill the law; they are not baptized, but my divine Spirit enters them and they are converted to my baptism, and I receive them with my righteous ones in the bosom of Abraham. [There were rabbis who taught that righteous heathen would be saved: t. Sanh. 13.2; b. Sanh. 105a. Recall also Paul's thoughts in Rom 2.14-16: Gentiles who do the law written on their hearts may have good consciences on the last day.] The context, however, does not explicitly teach two judgements; and we are not persuaded that 'the least' are to be identified with Christians (see below). Further, we have little doubt before Matthew, the scene concerned all humanity. At the same time, 25.31-46 may very well imply that Matthew thought salvation possible for those outside the church. We are reminded of Karl Rahner's so-called 'anonymous Christian'.