Arthashastra
तस्मिन्न् इष्टेन फलेन योगो अयः, अनिष्टेन अनयः ॥
here, the attainment of that desired end which seemed almost lost is (termed) fortune.
english translation
tasminn iSTena phalena yogo ayaH, aniSTena anayaH ॥
hk transliteration by Sanscript