All the gods turned to Lord Vishnu for help against the Rakhshasas but he was unable to fight them alone and sought Lord Shiva’s assistance. However, he found Shiva in a deep trance and decided to pray for him until he came out of it. Vishnu offered a thousand lotus flowers every day while chanting Shiva’s name for years until Shiva finally emerged. Unaware of Shiva’s awakening, Vishnu continued his chanting and realized one flower was missing , as Shiva decides to play a trick on Vishnu, and secretly removes one lotus from the bunch that Vishnu had arranged. To show his devotion, Vishnu offered his eye, and impressed by his dedication, Shiva granted him a boon. Vishnu asked for the power to defeat the rakhshasas and Shiva gave him the Sudarshana Chakra, a disc capable of destroying anything.
source