Valmiki Ramayana Bala Kanda Sarga 8 Shloka 12
Original Shlokaसर्वथा प्राप्स्यसे पुत्रानभिप्रेतांश्च पार्थिव। यस्य ते धार्मिकी बुद्धिरियं पुत्रार्थमागता।।1.8.12।।
1 source checked for this shloka
पार्थिव O King, यस्य ते since to you, पुत्रार्थम् for sons, इयम् this, धार्मिकी just and right, बुद्धि: mind, आगता arose, अभिप्रेतान् desired ones, सर्वथा by all means, प्राप्स्यसे you will obtain.
'O king, the wish that arose in your mind is just and right. You will definitely obtain sons as desired by you.'