Valmiki Ramayana Kishkindha Kanda Sarga 21 Shloka 5
Original Shlokaजानास्यनियतामेवं भूतानामागतिं गतिम्। तस्माच्छुभं हि कर्तव्यं पण्डितेनैह लौकिकम्।।4.21.5।।
1 source checked for this shloka
भूतानाम् for all beings, आगतिम् transient happenings, अनियताम् एव as it is unstable, जानासि you know, तस्मात् therefore, पण्डितेन by the wise, इह here, लौकिकम् worldly, शुभम् auspicious, कर्तव्यं हि is to be done.
'You are aware of the uncertain and transient happenings in the lives of living beings. Therefore, a wise lady should do auspicious work in this world.