The four sacred months in Islam are Muharram, Rajab, Dhul-Qa'dah, and Dhul-Hijjah. During these months, warfare and fighting are prohibited, and virtuous deeds are encouraged.