Upvote:0
Possibly DN 31:
When a noble disciple is not prejudiced by favoritism, hostility, stupidity, and cowardice,
Yato kho, gahapatiputta, ariyasāvako neva chandāgatiṃ gacchati, na dosāgatiṃ gacchati, na mohāgatiṃ gacchati, na bhayāgatiṃ gacchati;
Upvote:1
On this page, you can find Thanissaro Bhikkhu's summary for MN 93:
The Buddha enters into a debate with a brahman on whether one's worth as a person is determined by birth or by behavior. Although some of the arguments he presents here deal with the specifics of brahman caste pride, many of them are applicable to issues of racism and nationalism in general.