Valmiki Ramayana Ayodhya Kanda Sarga 28 Shloka 14
Original Shlokaदेवतानां पित्रूणां कर्तव्यं विधिपूर्वकम्। प्राप्तानामतिथीनां च नित्यशः प्रतिपूजनम्।।2.28.14।।
1 source checked for this shloka
देवतानाम् of devatas, पित्रूणां च also of ancestors, प्राप्तानाम् of those arrived, अतिथीनां च of guests also, विधिपूर्वकम् duly, नित्यशः always, प्रतिपूजनम् worship, कर्तव्यम् needs to be done.
One has to worship gods and ancestors according to tradition and extend hospitality to guests, (who arrive unexpectedly).