Śrīmad-Bhāgavatam · Text 7.9.10
Who is speaking and story frame
विप्राद् द्विषड्गुणयुतादरविन्दनाभ-
पादारविन्दविमुखात् श्वपचं वरिष्ठम् ।
मन्ये तदर्पितमनोवचनेहितार्थ-
प्राणं पुनाति स कुलं न तु भूरिमान: ॥ १० ॥
viprād dvi-ṣaḍ-guṇa-yutād aravinda-nābha-
pādāravinda-vimukhāt śvapacaṁ variṣṭham
manye tad-arpita-mano-vacanehitārtha-
prāṇaṁ punāti sa kulaṁ na tu bhūrimānaḥ
If a brāhmaṇa has all twelve of the brahminical qualifications [as they are stated in the book called Sanat-sujāta] but is not a devotee and is averse to the lotus feet of the Lord, he is certainly lower than a devotee who is a dog-eater but who has dedicated everything — mind, words, activities, wealth and life — to the Supreme Lord. Such a devotee is better than such a brāhmaṇa because the devotee can purify his whole family, whereas the so-called brāhmaṇa in a position of false prestige cannot purify even himself.
Read Śrīla Prabhupāda's purport on Vedabase.io