The Prophet ﷺ said, "Whoever believes in Allah and the Last Day should honor his guest. Whoever believes in Allah and the Last Day should maintain ties with his relatives. Whoever believes in Allah and the Last Day should speak good or remain silent."In another wording, "Whoever believes in Allah and the Last Day should speak good or remain silent. Whoever believes in Allah and the Last Day should honor his neighbor. Whoever believes in Allah and the Last Day should honor his guest."
عن النبي ﷺ قال: من كان يؤمن بالله واليوم الآخر فليكرم ضيفه، ومن كان يؤمن بالله واليوم الآخر فليصل رحمه، ومن كان يؤمن بالله واليوم الآخر فليقل خيرا أو ليصمت. وفي لفظ: من كان يؤمن بالله واليوم الآخر فليقل خيرا أو ليصمت، ومن كان يؤمن بالله واليوم الآخر فليكرم جاره، ومن كان يؤمن بالله واليوم الآخر فليكرم ضيفه.
Bukhari related it in Adab (6138) via Mamar, from Zuhri, from Abu Salama, from Abu Hurairah, and he related it with the first wording. Muslim related it in Iman (47:74) via Yunus, from Zuhri, with the same chain, and he related it with the second wording.