Sahih Muslim, Book 33, Hadith 264 (Muslim 4924)

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

The Messenger of Allah (ﷺ) forbade that a man should come to his family like (an unexpected) night visitor doubting their fidelity and spying into their lapses.