Abu Hurairah reported,

The Prophet ﷺ said, "Allah the Exalted said, 'The son of Adam offends Me by cursing time, for I am time. In My hand is the command, and I alternate the night and the day.'"In another wording, "Allah عز وجل said, 'The son of Adam offends Me when he says, "What a wretched time!" Let none of you say, "What a wretched time!" for I am time. I alternate its night and its day, and when I will, I shall seize them both.'"

Azami 14607

Sahih

عن أبي هريرة قال

قال النبي ﷺ: قال الله تعالى: يؤذيني ابن آدم يسب الدهر، وأنا الدهر، بيدي الأمر، أقلب الليل والنهار وفي لفظ: قال الله عز وجل: يؤذيني ابن آدم يقول: يا خيبة الدهر فلا يقولن أحدكم: يا خيبة الدهر فإني أنا الدهر، أقلب ليله ونهاره، فإذا شئت قبضتهما.

الأعظمي 14607صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of speech, words, and correspondence
Section
Prohibition of cursing time
Numbering
Jami al-Kamil 14607 (2nd edition)
Azami 14607