Bhagavad Gita 4.13

Chapter 4: Knowledge and the offering of action

चातुर्वर्ण्यं मया सृष्टं गुणकर्मविभागशः ।
तस्य कर्तारमपि मां विद्ध्यकर्तारमव्ययम् ॥ १३ ॥

The four castes were emanated by Me, by the different distribution of qualities and actions; know Me to be the author of them, though the actionless and inexhaustible.

Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.