Mahabharata 1.24.5
"Sauti said, 'O sinless one, when Rahu was drinking nectar among the gods at the time of the churning of the ocean he was pointed out to the gods by Surya and Soma, and from that time he conceived an enmity towards those deities. And upon this Rahu sought to devour his afflictor (Surya), became wroth, and thought, 'Oh, this enmity of Rahu towards me hath sprung from my desire of benefiting the gods. And this dire consequence I alone have to sustain. Indeed, at this pass help I obtain not. And before the very eyes of the denizens of heaven I am going to be devoured and they brook it quietly. Therefore, for the destruction of the worlds must I strive.' And with this resolution he went to the mountains of the west.