You can cut nails anytime of the day. There is no Hadith or Quranic verse stopping it. However it may be that because there was no night time light source in earlier times. Therefore, clipping nails late at night ran the risk of injuring both the person doing the cutting and anyone unintentionally stepping on the nail fragments. so it became a practice.