sa vai bhagavatah srimat-
bheje sarpa-vapur hitva
sah—he (the serpent); vai—indeed; bhagavatah—of the Supreme Personality of Godhead, Krsna; srimat-pada-sparsa—by the touch of the lotus feet; hata-asubhah—relieved from all reactions of sinful life; bheje—achieved; sarpa-vapuh—the body of a snake; hitva—giving up; rupam—beauty; vidyadhara-arcitam—suitable for a person of Vidyadhara-loka.
" 'Being touched by the lotus feet of Sri Krsna, that serpent was immediately freed from the reactions of his sinful life. Thus the serpent gave up his body and assumed the body of a beautiful Vidyadhara demigod.' "
This is a quotation from Srimad-Bhagavatam (10.34.9). The inhabitants of Vrndavana, under the leadership of Nanda Maharaja, once wanted to go to the bank of the Sarasvati on a pilgrimage. Nanda Maharaja was fasting, and he lay down near the forest. At that time a serpent, who was formerly cursed by Angirasa Rsi, appeared. This serpent had formerly been named Sudarsana, and he had belonged to the Gandharvaloka planet. However, because he joked with the rsi, he was condemned to take on the body of a big snake. When this serpent attacked Nanda Maharaja, Nanda Maharaja began to call, "Krsna! Help!" Krsna immediately appeared and began to kick the serpent with His lotus feet. Due to being touched by the Lord's lotus feet, the serpent was immediately freed from the reactions of his sinful life. Being freed, he again assumed his original form of Sudarsana, the Gandharva.
Link to this page: https://prabhupadabooks.com/cc/madhya/25/77