Bhagavad Gita 6.9

सुहृन्मित्र्युरादासीनमध्यस्थद्वेष्यबन्धुषु |
साधुश्वपि च पापेषु संबुद्धिर्विशिष्यते

Translation

The yogis look upon all—well-wishers, friends, foes, the pious, and the sinners—with an impartial intellect. The yogi who is of equal intellect toward friend, companion, and foe, neutral among enemies and relatives, and unbiased between the righteous and sinful, is considered to be distinguished among humans.