Answer:
Praise be to Allah, the Lord of the World; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
It is proved in the sound collections of Hadith of
al-Bukhari and
Muslim from
Abu Hurairah (Radiya Allahu Anhu) that Allah's Messenger (Sallallahu Alaihi wa Sallam) said:
"Five things are part of one's Fitra (human nature and disposition): Shaving the pubic hairs, circumcision, trimming the moustache, removing the hair under the arms and trimming the nails" .
The above-named Hadith indicates that performing such acts constitutes part of human Fitra, which Allah has created in all human beings; it also urges them to do such acts so as to acquire the best and finest qualities of the human being.
As mentioned above, trimming the nails means to pare them and to keep them short so as to prevent dirt from remaining under them; otherwise this constitutes a violation to the Sunnah of the Prophet (Sallallahu Alaihi wa Sallam). He (Sallallahu Alaihi wa Sallam) stated that we should not leave them (acts of Fitra except circumcision) more than forty days as reported in a sound Hadith by
Imam Muslim . This means that we are allowed to leave trimming the nails no more than forty days; otherwise it becomes disallowed.
In addition, if leaving the nails to be long is just to imitate non-Muslim women, then it becomes a violation to Shari'a for two reasons: imitation and breaching the Prophet's (Sallallahu Alaihi wa Sallam) guidance.
As for the inquirer's saying that the devil will be under long nails, there is no evidence in the Qur'an or Sunnah for such assumption according to our knowledge.
Allah knows best.