In the Old Testament, the books of Exodus, Leviticus and Deuteronomy make similar statements about the treatment of strangers.
The New Testament Parable of the Tares, which speaks of the difficulty of distinguishing wheat from weeds before harvest time, has also been invoked in support of religious toleration.