Valmiki Ramayana Ayodhya Kanda Sarga 100 Shloka 22
Original Shlokaकच्चित्सहस्रान्मूर्खाणामेकमिच्छसि पण्डितम्। पण्डितो ह्यर्थकृच्छ्रेषु कुर्यान्निश्रेयसं महत्।।2.100.22।।
1 source checked for this shloka
मूर्खाणाम् among fools, सहस्रात् in preferance to a thousand, एकम् single, पण्डितम् wise man, इच्चसि कच्चित् I hope are preferring, अर्थकृच्छेषु in difficult situations, पण्डितः a wise man, महत् immense, निश्रेयसम् help, कुर्यात् will render.
I hope by setting aside a thousand fools, you prefer a single wise man. A wise man will be of immense help in difficult situations.