Valmiki Ramayana Ayodhya Kanda Sarga 83 Shloka 24
Original Shlokaदातुं च तावदिच्छामि स्वर्गतस्य महीपतेः। और्ध्वदेहनिमित्तार्थमवतीर्योदकं नदीम्।।2.83.24।।
1 source checked for this shloka
नदीम् river, अवतीर्य descending, स्वर्गतस्य to the departed, महीपतेः king's, और्ध्वदेहनिमित्तार्थम् for the good of his life in the other world, उदकम् libations with water, दातुम् च to offer, इच्छामि तावत् I wish.
Meanwhile, I shall get into this river and offer libations with water to the departed king for the good of his life in the other world.