Vaisesika Sūtras
Vaisesika Sūtra 6.1.03
buddhipūrvo dadātiḥ ॥3॥
Giving or charity is preceded by intention combined with knowledge.