Ruling concerning letting fingernails grow long and wearing nail polish
Q: What is the ruling concerning letting fingernails grow long and putting on finger nail polish, given that I make ablution before putting them on and it stays for twenty-four hours and then remove it?
A: Letting the fingernails grow is something that goes against the sunnah of the Prophet (sal-Allaahu `alayhe wa sallam). He said, ((From the acts of nature are five: circumcision, removing pubic hairs, trimming the moustache, cutting the nails and plucking the hair from under the armpits.)) It is not allowed to leave them for more than forty nights. This is based on the Hadeeth of Anas who said, "The Messenger of Allaah set a time limit for us for trimming the moustache, trimming nails, removing armpit hairs and removing pubic hairs. They cannot be left for more than forty nights."
Letting them grow long resembles animals and some of the disbelievers.
As for nail polish, it is better to avoid it. One must remove it when making ablution since it prevents water from reaching the nails.
Source: Fatwa Online
Shaykh Ibn Baaz
Fataawa al-Mar.ah