Sahih Muslim | Book 40 | Hadith Number 6836

Narrated by Abu Huraira
Abu Huraira reported Allah's Messenger (may peace be upon him) as saying: Many a people with dishevelled hair are driven away from the door (but they are so pious) that if they are to swear in the name of Allah, He would definitely fulfil that.