It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Do not revile the night and the day, nor curse the sun, the moon and the winds, for indeed these (phenomena of nature) are sent as a mercy for some people and as a punishment for others."
Imam Abu Ya'la narrated it.
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الأدب / 2712
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده ضعيف » «أخرجه المعجم الأوسط للطبراني برقم: 6791، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 5345»