The Prophet ﷺ disliked that a man should come to his family unannounced at night.Wazad added in another narration, suspecting them of betrayal or seeking out their faults.
كان النبي ﷺ يكره أن يأتي الرجل أهله طروقا. وزاد في رواية: يتخونهم أو يلتمس عثراتهم.
Bukhari related it in the Book of Marriage (5243), and Muslim in the Book of Leadership (192:1928), both through the route of Shubah, who said, "Muharib bin Dithar told us, he said, 'I heard Jabir bin Abdullah,'" and then he narrated it. The wording given is that of Bukhari. The addition is from Muslim, from the narration of Waki, from Sufyan (that is, Thawri), from Muharib, with the same chain. Muslim also related it through the route of Abdul-Rahman, that is, Ibn Mahdi, from Sufyan, with the same chain, and he said, Sufyan said, "I do not know whether this is part of the hadith or not," meaning the phrase "that he should suspect them of betrayal or seek out their faults."I say, this addition also occurs in the narration of Abu Naeem, that is, Fadl bin Dukayn, from Sufyan, with the same chain, without any doubt. Nasai related it in Sunan al-Kubra (9096), and this is the sahih version, since certainty removes doubt.His statement, "that he should suspect them of betrayal," means seeking to determine whether their chastity is intact or not, even though the default assumption regarding a believing woman is that she is chaste, and so it is not permissible to spy on her chastity. This is part of the wisdom behind the prohibition against entering upon women at night.