Valmiki Ramayana Ayodhya Kanda Sarga 20 Shloka 45
Original Shlokaदश सप्त च वर्षाणि जातस्य तव राघव अतितानि प्रकाङ्क्षन्त्या मया दुःखपरिक्षयम्।।2.20.45।।
1 source checked for this shloka
राघव Rama, तव जातस्य after you were (re) born (after your investiture with the sacred thread regarded as second birth), दश सप्त च ten and seven (seventeen), वर्षाणि years, दुःखपरिक्षयम् end of my sorrows, प्रकाङ्क्षन्त्या longing, मया by me, अतितानि have been spent.
O Rama, I have spent the last seventeen years after your birth with the expectaion that my sorrows would come to an end.