Surya Siddhanta
यथादिशम् प्राग्रहणम् वलनम् हिमदीधितेः। मौक्षिकम् तु विपर्यस्तम् विपरीतम् इदम् रवेः॥
In a lunar eclipse, the deflection (valana) for the contact is to be laid off in its own proper direction, but that for the separation in reverse; in an eclipse of the sun, the contrary is the case.
english translation
yathAdizam prAgrahaNam valanam himadIdhiteH। maukSikam tu viparyastam viparItam idam raveH॥
hk transliteration by Sanscript