Śrīmad-Bhāgavatam · Text 7.15.2
Who is speaking and story frame
ज्ञाननिष्ठाय देयानि कव्यान्यानन्त्यमिच्छता ।
दैवे च तदभावे स्यादितरेभ्यो यथार्हत: ॥ २ ॥
jñāna-niṣṭhāya deyāni
kavyāny ānantyam icchatā
daive ca tad-abhāve syād
itarebhyo yathārhataḥ
A person desiring liberation for his forefathers or himself should give charity to a brāhmaṇa who adheres to impersonal monism [jñāna-niṣṭhā]. In the absence of such an advanced brāhmaṇa, charity may be given to a brāhmaṇa addicted to fruitive activities [karma-kāṇḍa].
Read Śrīla Prabhupāda's purport on Vedabase.io