Valmiki Ramayana Sundara Kanda Sarga 11 Shloka 36
Original Shlokaनिरीक्षमाणश्च तदा ताः स्त्रियः स महाकपिः।।5.11.36।। जगाम महतीं चिन्तां धर्मसाध्वसशङ्कितः।
1 source checked for this shloka
तदा then, स्त्रियः women, निरीक्षमाणः while seeing, सः he, महाकपिः the great monkey, धर्मसाध्वसशङ्कितः thinking that he transgressed the moral code, महतीम् great, चिन्ताम् worry, जगाम experienced.
The great monkey was very much worried as he thought he had transgressed the moral code by watching the women.