Setaketujātaka

Suttapiṭaka · Khuddakanikāya · Jātaka (1) · Vol. 27 · Section 841

[841] Even one possessing a thousand Vedas would not, in dependence on that, be freed from suffering (dukkha), not having attained conduct (caraṇa); I think the Vedas are fruitless: conduct together with self-restraint — that alone is the truth.

English translation from the Pali (Siam Raṭṭha edition) — under review, not for citation.

This passage also appears in 1 other place