Bhagavad Gita 17.28
Chapter 17: The three kinds of faith
अश्रद्धया हुतं दत्तं तपस्तप्तं कृतं च यत् ।
असदित्युच्यते पार्थ न च तत्प्रेत्य नो इह ॥ २८ ॥
Whatsoever is wrought without faith, oblation, gift, austerity, or other deed, "Asat" it is called, O Pârtha; it is nought, here or hereafter.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.