Bhagavad-gītā As It Is · Text 17.22
Charity according to the modes
अदेशकाले यद्दानमपात्रेभ्यश्च दीयते ।
असत्कृतमवज्ञातं तत्तामसमुदाहृतम् ॥ २२ ॥
adeśa-kāle yad dānam
apātrebhyaś ca dīyate
asat-kṛtam avajñātaṁ
tat tāmasam udāhṛtam
And charity performed at an impure place, at an improper time, to unworthy persons, or without proper attention and respect is said to be in the mode of ignorance.
Read Śrīla Prabhupāda's purport on Vedabase.io