मत्कर्मकृन्मत्परमो मद्भक्तः सङ्गवर्जितः।
निर्वैरः सर्वभूतेषु यः स मामेति पाण्डव ॥
mat-karma-kṛin mat-paramo mad-bhaktaḥ saṅga-varjitaḥ
nirvairaḥ sarva-bhūteṣhu yaḥ sa mām eti pāṇḍava
He who doeth actions for Me, whose supreme good I am, My devotee, freed from attachment without hatred of any being, he cometh unto Me, O Pândava.
In plain words: Krishna says that a person comes to him if they do their work for him, treat him as their highest goal, love him, are not clinging to things, and hate no living being.