Bhagavad Gita 7.20
Chapter 7: Knowledge and realisation
कामैस्तैस्तैर्हृतज्ञानाः प्रपद्यन्तेऽन्यदेवताः ।
तं तं नियममास्थाय प्रकृत्या नियताः स्वया ॥ २० ॥
They whose wisdom hath been rent away by desires go forth to other Shining Ones, resorting to various external observances, according to their own natures.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.