Bhagavad Gita 3.13

यज्ञशिष्टाशिनः सन्तो मुच्यन्ते सर्वकिल्बिषैः।भुञ्जते ते त्वघं पापा ये पचन्त्यात्मकारणात् ॥३.१३॥

yajñaśiṣṭāśinaḥ santo mucyante sarvakilbiṣaiḥbhuñjate te tvaghaṃ pāpā ye pacantyātmakāraṇāt

The righteous who eat the remnants of the sacrifice are freed from all sins; but those sinful ones who cook food solely for their own sake indeed consume sin.

गीता