Valmiki Ramayana Aranya Kanda Sarga 35 Shloka 3
Original Shlokaतत्कार्यमनुगम्याथ यथावदुपलभ्य च। दोषाणां च गुणानां च सम्प्रधार्य बलाबलम्।3.35.2।। इति कर्तव्यमित्येव कृत्वा निश्चयमात्मनः। स्थिरबुद्धिस्ततो रम्यां यानशालां जगाम ह।।3.35.3।।
1 source checked for this shloka
अथ and, तत् that, कार्यम् task, अनुगम्य thinking deeply, यथावत् duly, उपलभ्य च understanding, दोषाणाम् of demerits, गुणानां च merits, बलाबलम् strength and weakness, सम्प्रधार्य reflected on it, इति this, कर्तव्यम् duty, इत्येव that way, आत्मनः in himself, निश्चयम् decided, कृत्वा did, स्थिरबुद्धि: firmly, ततः then, रम्यां delightful, यानशालाम् coachshed, जगाम ह went.
Deliberating on the task ahead, duly considering the pros and cons, demerits and merits, strength and weakness, of the issue and having firmly decided within himself, he left for the beautiful coachshed.