It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When someone has peeped inside, then there is no permission for him anymore."
Hadith Referenceالادب المفرد / كتاب الاستئذان / 1089