Sunan Abi Dawud, Book 43, Hadith 401 (Abu Dawud 5175)

Narrated AbuHurayrah:

The Prophet (ﷺ) said: When one has a look into the house, then there is no (need of) permission.