Bhagavad Gita 18.32
Chapter 18: Freedom through renunciation
अधर्मं धर्ममिति या मन्यते तमसा वृता ।
सर्वार्थान् विपरीतांश्च बुद्धिः सा पार्थ तामसी ॥ ३२ ॥
That which, enwrapped in darkness, thinketh wrong to be right and seeth all things subverted, that Reason, O Pârtha, is of darkness.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.