Svargārohaṇa-parva Adhyāya 5 — Karmaphala-Nirdeśa and Phalāśruti (कर्मफलनिर्देशः फलश्रुतिश्च)
अनागतश्र मोक्षश्न कृष्णद्वैपायन: प्रभु: । संदर्भ भारतस्यास्य कृतवान् धर्मकाम्यया
anāgataśramokṣajñaḥ kṛṣṇadvaipāyanaḥ prabhuḥ | saṃdarbhya bhāratasyāsya kṛtavān dharmakāmyayā ||
Vaiśampāyana said: The venerable Kṛṣṇa Dvaipāyana (Vyāsa), who knew the means of liberation from the toils that are yet to come, composed and arranged this Bhārata out of a desire to uphold and promote dharma.
वैशम्पायन उवाच
The epic is presented as a deliberately crafted guide: Vyāsa, knowing how beings can be freed from future suffering, composes the Bhārata with the intention of strengthening dharma—so that ethical discernment and right conduct may lead toward liberation.
The narrator Vaiśampāyana attributes the composition and arrangement of the Mahābhārata to Vyāsa, emphasizing his authority and his motive: the work is woven together not merely as history, but as a dharma-oriented teaching meant to benefit listeners and readers.