Valmiki Ramayana Ayodhya Kanda Sarga 45 Shloka 24
Original Shlokaया हि नः सततं बुद्धिर्वेदमन्त्रानुसारिणी। त्वत्कृते सा कृता वत्स वनवासानुसारिणी।।2.45.24।।
1 source checked for this shloka
वत्स dear child, न: our, या बुद्धि: mind, सततं always, वेदमन्त्रानुसारिणी follows Vedic hymns that one, त्वत्कृते for your sake, वनवासानुसारिणी one seeking the forest life, कृता is made.
O dear child, our minds always pursue the study of vedic hymns. For your sake now they are made to follow the life in the forest.