Abdur Rahman ibn Awf reported: He would patrol the city at night with Umar ibn Al-Khattab, may Allah be pleased with him, and on one occasion they were walking when the lampf a household caught their attention. They approached it until they heard loud voices inside the door. Umar grabbed the hand of Abdur Rahman and he said, “Do you know whose house this is?” He said, “No.” Umar said, “This is the house of Rabia ibn Umayyah ibn Khalaf and they are inside drinking wine right now! So what do you think?” Abdur Rahman said, “Indeed, I think we have done what Allah has prohibited for us. Allah the Exalted said: Do not spy, (49:12) and we have spied on them.” So Umar turned away and he left them alone.
[Al-Mustadrak ‘ala as-Saheehain, Number 8198, Sahih]