Sunan Ibn Majah, Book 31, Hadith 108 (Ibn Majah 3545)

It was narrated from Ibn ‘Abbas that the Prophet (ﷺ) said:

“Do not keep looking at those who have leprosy.”