The Vishnu Sahasranama is a historical Sanskrit/Vedic text. Sahasra translates to thousand, and nama to name. Sage Vyasa, an exceptional Sanskrit scholar, composed the spiritual Vishnu Sahasranama. He is also the author of timeless epics, including the Mahabharata, Bhagavad Gita, Puranas, and other hymns. Sahasranama is a portion of the Mahabharata verse attributed to Vishnu. According to the mythology surrounding it, Yudhishthira, the eldest of the five Pandavas, was once amazed by the greatest theological pursuit of his life. He moved toward Krishna, but he did not bestow the Gita's mastery on Krishna as he had on Arjuna.
Instead, Krishna led Yudhishthira to the battlefield, where the great warrior Bhishma Pitamah lay on his deathbed. He was injured by the arrows of Arjuna. On Krishna's advice, Yudhishthira posed six questions to Bhishma regarding all aspects of life, to which Bhishma responded that Yudhishthira should surrender his life to whoever granted him life. Bhishma stated that meditating on Lord Vishnu's one thousand names would liberate one from all sins, and he listed Lord Vishnu's names. This portion of the Mahabharata is known as the Vishnu Sahasranama and was composed by the sages Vyasa and Krishna, who were present at the battle of Kurukshetra.