The Prophet ﷺ said, "Do not curse time, for Allah is time itself."
عن النبي ﷺ قال: لا تسبوا الدهر، فإن الله هو الدهر.
No references are available.
Muslim narrated it in Kitab al-Alfaz min al-Adab and elsewhere (2246:5) from Zuhayr bin Harb, who said, Jareer narrated to us, from Hisham, from Ibn Sirin, from Abu Hurairah, and he mentioned it.It was also narrated from Abu Hurairah, from the Prophet ﷺ, who said, "Allah says, I asked my servant for a loan and he did not lend to me, and my servant curses me without realizing it, saying, 'O misfortune of time, O misfortune of time,' while I am time itself."Ahmad narrated it (7988) and Abu Yaala (6466), and Ibn Khuzayma graded it sahih (2479), as did Hakim (1/418), all of them through routes from Muhammad bin Ishaq, from Ala bin Abdul-Rahman, from his father, from Abu Hurairah, and he mentioned it.In it is Ibn Ishaq, who is a mudallis and has used the anan formula here, and no one else has corroborated him on this wording.