Valmiki Ramayana Yuddha Kanda Sarga 57 Shloka 11
Original Shlokaआपत्संशयिताश्रेयोनात्रनिस्संशयीकृता ।।6.57.11।। प्रतिलोमानुलोमंवायद्वानोमन्यसेहितम् ।
1 source checked for this shloka
अत्र then, संशयिता uncertain, आपत् if it comes, श्रेयः good, निस्सशयीकृता undesirable, न not, तु you, यत् that, वा or, प्रतिलोमानुलोमंवा whether acceptable or not acceptable, हितम् good, मन्यसे I think.
"If uncertain death comes it is good, not when it comes by not encountering. Think what is acceptable to you and what is not acceptable to you and that is acceptable to me."