The Prophet ﷺ said, "None of you should say, 'What a disappointment this time is,' for Allah is the One who controls time."
حدثنا أبو أحمد حدثنا سفيان عن أبي الزناد عن الأعرج
عن النبي ﷺ قال لا يقول أحدكم يا خيبة الدهر فإن الله عز وجل هو الدهر
Its isnad is sahih, see 9111. The hadith is found in Bukhari, 10/564, no. 6182, in Fath al-Bari, in the chapter on manners, "Do not curse time," with similar wording, and in Muslim, in the chapter on manners, the prohibition against cursing time, 4/1763, no. 2246, and in Malik, in the chapter on speech, what is disliked in speech, with similar wording, 2/984.