According to Hindu mythology, Lord Vishnu is considered the preserver of the universe and is one of the principal deities of the Hindu pantheon.
As per the Hindu scriptures, Lord Vishnu is said to have taken many avatars or incarnations to protect the world and its inhabitants. Some of his most famous avatars include Lord Rama, Lord Krishna, and Lord Narasimha.
Before Lord Vishnu rested on Adi Sesha, it is believed that he created the universe and all its beings, including the gods and demons. In Hindu mythology, this act of creation is attributed to Lord Brahma, who is considered to be the creator of the universe. However, Lord Vishnu is said to have instructed and guided Lord Brahma in this process.
Additionally, Lord Vishnu is also believed to have engaged in various acts of protection and preservation before resting on Adi Sesha. For example, he is said to have defeated many powerful demons and saved the world from destruction. One such instance is the story of the churning of the ocean of milk, where Lord Vishnu helped the gods obtain the elixir of immortality and prevented the demons from gaining it.
Overall, before resting on Adi Sesha, Lord Vishnu is believed to have engaged in various acts of creation, protection, and preservation in Hindu mythology.