It was narrated from Ibn ‘Abbas that the Prophet (ﷺ) said:
“Do not keep looking at those who have leprosy.”