From Sahih Muslim (Hadith 2733):
Abdullah b. 'Amr b. al-'As (Allah be pleased with them) reported that the Messenger of Allah (ﷺ) said:'Abdullah, don't be like so and so who observed prayer during the whole night and then abandoned it (altogether)
Reference: Muslim 2733