Chapter 3 · The Yoga of Action · Krishna said
Bhagavad Gita 3.13 — Eating after offering
यज्ञशिष्टाशिनः सन्तो मुच्यन्ते सर्वकिल्बिषैः। भुञ्जते ते त्वघं पापा ये पचन्त्यात्मकारणात् ॥
yajñaśiṣṭāśinaḥ santo mucyante sarvakilbiṣaiḥ | bhuñjate te tvaghaṃ pāpā ye pacantyātmakāraṇāt ||
Meaning
Good people who eat what remains after the offering are freed from all wrongs, but those who cook only for themselves eat sin.