Valmiki Ramayana Sundara Kanda Sarga 55 Shloka 12
Original Shlokaयदि तद्विहतं कार्यं मम प्रज्ञाविपर्ययात्। इहैव प्राणसंन्यासो ममापि ह्यद्य रोचते।।5.55.12।।
1 source checked for this shloka
मम my, प्रज्ञाविपर्ययात् stupidity, तत् this, कार्यम् work, विहतं यदि if it has been foiled, ममापि foil me also, इहैव here itself, प्राणसन्यासः give up life, अद्य now, रोचते is proper.
'If my work has been destroyed by my perversity of judgement, I will give up my life now and here itself'.