यावानर्थ उदपाने सर्वतः संप्लुतोदके। तावान्सर्वेषु वेदेषु ब्राह्मणस्य विजानतः
yāvān artha udapāne sarvataḥ samplutodake tāvānsarveṣhu vedeṣhu brāhmaṇasya vijānataḥ
As a man can drink water from any side of a full tank, so the skilled theologian can extract from any scripture that which will serve their purpose.
Translated by Shri Purohit Swami
To the Brahmana who has known the Self, all the Vedas are of as much use as a reservoir of water would be in a place where there is a flood.
Translated by Swami Sivananda
Word meanings (from the gita/gita dataset)
yāvān—whatever; arthaḥ—purpose; uda-pāne—a well of water; sarvataḥ—in all respects; sampluta-udake—by a large lake; tāvān—that many; sarveṣhu—in all; vedeṣhu—Vedas; brāhmaṇasya—one who realizes the Absolute Truth; vijānataḥ—who is in complete knowledge