The Messenger of Allah ﷺ said, "Do not curse time, for Allah is time."
قال رسول الله ﷺ: لا تسبوا الدهر فإن الله هو الدهر.
No references are available.
Ahmad (22552) narrated it from Abdul-Rahman, from Sufyan, from Abdul-Aziz - meaning, Ibn Rafi - from Abdullah bin Abu Qatada, from his father, and he related it. Its isnad is sahih. Abdul-Rahman is Ibn Mahdi, and Sufyan is Thawri.