Bhagavad-gītā As It Is · Text 6.9
The mind as friend or enemy; equanimity
सुहृन्मित्रार्युदासीनमध्यस्थद्वेष्यबन्धुषु ।
साधुष्वपि च पापेषु समबुद्धिर्विशिष्यते ॥ ९ ॥
suhṛn-mitrāry-udāsīna-
madhyastha-dveṣya-bandhuṣu
sādhuṣv api ca pāpeṣu
sama-buddhir viśiṣyate
A person is considered still further advanced when he regards honest well-wishers, affectionate benefactors, the neutral, mediators, the envious, friends and enemies, the pious and the sinners all with an equal mind.
Read Śrīla Prabhupāda's purport on Vedabase.io