Valmiki Ramayana Ayodhya Kanda Sarga 51 Shloka 20
Original Shlokaसिद्धार्थाः पितरं वृत्तं तस्मिन्कालेऽप्युपस्थिते। प्रेतकार्येषु सर्वेषु संस्करिष्यन्ति भूमिपम्।।2.51.20।।
1 source checked for this shloka
तस्मिन् at that, काले time indeed, उपस्थिते present, सिध्दार्थाः those who accomplished their purpose, वृत्तम् laid in that state, पितरम् father, भूमिपम् lord of the land, king, सर्वेषु for all, प्रेतकार्येषु funeral rites, संस्करिष्यन्ति will perform.
Those who will remain present around the king, my father, at the time of his death and perform the funeral rites have their desires fulfilled (for they could attend the king's obsequies).