Amr bin al-Sharid (may Allah have mercy on him) narrates from his father, Sayyiduna al-Sharid (may Allah be pleased with him), that a man with leprosy came to the Prophet (peace and blessings be upon him) to give him the pledge of allegiance. So I went to him (peace and blessings be upon him) and told him (peace and blessings be upon him), and he (peace and blessings be upon him) said: "Go to him and tell him that I have accepted his pledge; let him go back."
Hadith Referenceالمعجم الكبير للطبراني / باب الشين / 7216