Answer: It is forbidden.
It is imitation of the disbelieving nations. It is contrary to the natural disposition (fitrah) of Islam and to the Sunnah of the Prophets.
Abu Hurairah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said:
الْفِطْرَةُ خَمْسٌ: الخِتَانُ ، وَالِاسْتِحْدَادُ ، وَقَصُّ الشَّارِبِ ، وَتَقْلِيمُ الأَظْفَارِ ، وَنَتْفُ الآبَاطِ .
“Five things are from the Sunnah of all the Prophets: circumcision, shaving the pubic hair, trimming the moustache, clipping the nails, and plucking the underarm hair.”
Anas ibn Malik (may Allah be pleased with him) narrates:
وُقِّتَ لَنَا فِي قَصِّ الشَّارِبِ ، وَتَقْلِيمِ الْأَطْفَارِ ، وَنَتْفِ الْإِبِطِ ، وَحَلْقِ العَانَةِ ، أَنْ لَّانَتْرُكَ أَكْثَرَ مِنْ أَرْبَعِينَ لَيْلَةً .
“A time limit was set for us: that we should not leave the moustache, nails, underarm hair and pubic hair for more than forty days.”
Abdullah ibn Umar (may Allah be pleased with them both) narrates that the Messenger of Allah ﷺ said:
مِنَ السُّنَّةِ قَصُّ الشَّارِبِ ، وَنَتْفُ الإِبْطِ ، وَتَقْلِيمُ الأَظْفَارِ .
Trimming the moustache, plucking the underarm hair and clipping the nails are from the Sunnah of the Prophets.
Keeping the nails for more than forty days is forbidden, impermissible and a major sin. It is opposition to the Prophet ﷺ and the other Prophets (peace be upon him), and it is utterly a cause of destruction and ruin. Only those whose natural disposition has become distorted let their nails grow.
How many heedless people have gone into the grave with this sin. Could there be any greater distress than that after you die, people clip your nails, when you will no longer be accountable at all? Clipping the nails of a dead person is mere formality. So adopt the example of the Messenger. The good of religion and of this world lies in this.
Benefit:
It is recommended that the nails be clipped every Friday.
The maximum limit is forty days.
It is reported about Abdullah ibn Umar (may Allah be pleased with them both):
كَانَ يُقَدِّمُ أَظْفَارَهُ وَيَقُصُّ شَارِبَهُ فِي كُلِّ جُمُعَةٍ .
“He (may Allah be pleased with him) used to clip his nails and trim his moustache every Friday.”
Hafiz al-Sakhawi (may Allah have mercy on him) (831-902 AH) writes:
لَمْ يَثْبُتُ فِي كَيْفِيَّتِهِ ، وَلَا فِي تَعْيِينِ يَوْمٍ لَّهُ ، عَنِ النَّبِيِّ اللهُ عَلَيْهِ وَسَلَّمَ شَيْءٌ .
“Nothing is established from the Prophet ﷺ regarding the manner of clipping the nails or the specification of a day for it.”