Śrīmad-Bhāgavatam · Text 11.20.10
Who is speaking and story frame
स्वधर्मस्थो यजन् यज्ञैरनाशी:काम उद्धव ।
न याति स्वर्गनरकौ यद्यन्यन्न समाचरेत् ॥ १० ॥
sva-dharma-stho yajan yajñair
anāśīḥ-kāma uddhava
na yāti svarga-narakau
yady anyan na samācaret
My dear Uddhava, a person who is situated in his prescribed duty, properly worshiping by Vedic sacrifices but not desiring the fruitive result of such worship, will not go to the heavenly planets; similarly, by not performing forbidden activities he will not go to hell.
Read the purport on Vedabase.ioFrom Canto 10, chapter 14 onward, the translation and purports were completed by Śrīla Prabhupāda's disciples after his departure, and published by the Bhaktivedanta Book Trust.