Sahih Muslim, Book 40, Hadith 5 (Muslim 5807)

Abu Huraira reported Allah's Apostle (ﷺ) as saying:

Do not curse Time, for it is Allah Who is Time.