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.
Sahih Muslim Book 33, Hadith 264