Question:
Is it permissible to curse inanimate things?
Answer:
It is not permissible to curse anything without a reason.
The Prophet ﷺ forbade cursing the wind.
Reference: (Musnad Abd bin Humayd: 167; Amal al-Yawm wa al-Laylah by al-Nasa’i: 937; its chain is sahih (authentic))
A female Companion cursed the fever, so the Prophet ﷺ said:
لا تسبي الحمى، فإنها تذهب خطايا بني آدم، كما يذهب الكير خبث الحديد
Do not curse the fever, for it removes a person’s sins just as the furnace removes the rust from iron.
Reference: (Sahih Muslim: 2575)