It was said by Om omara In, ( aseera alnbawya) by ebn katheer, Vol 3, page 414, that Mohammed forbade to knock on your door after evening prayers, so you don't see what you might dislike.
Also was mentioned in (bedaya wa nehaya) -the beginning and the end- by ebn katheer vol 4, page 219, and, Dla'el alnbwa by al bayhaqi vol 4, page 271. and she continue (om omara) there was a man who disobeyed Mohammed and knocked on his own door after evening prayer, and saw his wife cheating.
In (Ghareeb elhadeeth), -strange talk- by elkhtabi, vol 2, page 91/92 Mohammed said do not knock on you wives' door, or take them by surprise, so you won't see them cheating.
In (Al mosanaf) -selections- by abd elrazek alsana'ani, vol 7, page 494/495 a whole chapter is about same issue, that two men knocked on their door at night and saw their women cheating, the 2 men went to Mohammed and told them what happened, he said" I have warned you, and forbade you from that"
??????
In (Almosanf) by ebn abi shiba, vol 6, page 537. If the man of the house was gone for long time, DO NOT knock, or enter your house at night by surprise. so you don't see the infidelity.
In Qatel ebn Soliman explaination, vol 2, page 411. Mohammed whipped 3 men and a woman 80 times, because they witnessed and told on Aisha (his wife) that she was cheating with Safwan ebn el Mo'atal. Those witnesses are; Abdallah ebn Obay, Hassan ebn Thabet, Mosattah ebn abasa, and henah bent gahsh.
??????????
In (Islamic illusion) by Mostafa abd allah, page 99/100 said that Aisha was in love with Ali ebn abi taleb, and safwan ebn al mo'atal.
In (Saheeh moslem) vol 3, page 1319 & al Imam ahmad ebn hanbel, vol 5, page 103. Mohammed warned and threat, that every time they go to foray ( a war) one sneak out and cheat with someone's wife, that if he caught one, he will cut his member.