Wa'il bin Sulaym says: I came to Abu Ayyub al-Azdi and shook hands with him. He saw my long nails and said: A man came to the Prophet (peace and blessings be upon him) asking him something, and he (peace and blessings be upon him) said: "One of you asks me about the news of the heavens (revelation) while he leaves his nails like the talons of birds, in which janabah (impurity) and dirt collect." This narration is mursal (its chain skips the Companion). Abu Ayyub al-Azdi is someone other than Abu Ayyub al-Ansari (may Allah be pleased with him).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الطهارة / 829