The Messenger of Allah (ﷺ) forbade that a man who had long absent should come to his family like (an unexpected) night visitor.
Sahih Muslim Book 33, Hadith 262