Valmiki Ramayana Ayodhya Kanda Sarga 30 Shloka 20
Original Shlokaपश्चादपि हि दुःखेन मम नैवास्ति जीवितम्। उज्झितायास्त्वया नाथ तदैव मरणं वरम्।।2.30.20।।
1 source checked for this shloka
नाथ O Lord, त्वया by you, उज्झितायाः of an abandoned lady, मम to me, पश्चादपि even afterwards, दुःखेन through grief, जीवितम् life, नैवास्ति will not be there, तदैव than abandonment, मरणम् death, वरम् is better.
If forsaken, O Lord I shall not live a life of sorrow. Instant death is better (than abandoned existence).