The Messenger of Allah ﷺ said, "Whoever believes in Allah and the Last Day should speak good or remain silent. Whoever believes in Allah and the Last Day should not harm his neighbor. Whoever believes in Allah and the Last Day should honor his guest."
قال رسول الله ﷺ: من كان يؤمن بالله واليوم الآخر فليقل خيرا أو ليصمت، ومن كان يؤمن بالله واليوم الآخر فلا يؤذ جاره، ومن كان يؤمن بالله واليوم الآخر فليكرم ضيفه.
Bukhari related it in the Chapters on Heart-Softening Matters (6475), and Muslim in the Book of Faith (47), both through the route of Ibn Shihab, from Abu Salama, from Abu Hurairah, who narrated it. The wording given here is Bukhari's.