Jabir (May Allah be pleased with him) reported: The Messenger of Allah (PBUH) said, "When one of you stays away (from his family) for a long period of time, let him not surprise his family by night."
In another narration, Jabir (May Allah be pleased with him) said: The Messenger of Allah (PBUH) prohibited us from coming back to our family at night.