Sahih Muslim, Book 33, Hadith 262 (Muslim 4922)

It has been narrated (through a different chain of tranmitters) on the authority of Jabir who said:

The Messenger of Allah (ﷺ) forbade that a man who had long absent should come to his family like (an unexpected) night visitor.