It was the practice of the Prophet (peace and blessings be upon him):
"He (peace and blessings be upon him) would sleep in the first part of the night and bring the last part to life with worship."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 5017