Anas (May Allah be pleased with him) said:
Once the Prophet (ﷺ) delayed the 'Isha' (night) prayer till midnight. He (ﷺ) turned to us after the prayer and said, "All the people slept after offering their prayers, but you who waited, will be accounted as if you were engaged in your prayer throughout the period."[Al- Bukhari].
App reference: Book 18, Hadith 238
Arabic/English book reference: Book 18, Hadith 1748