Muslims measure the passage of time using the Islamic (hijrah) calendar. This calendar has twelve lunar months, the beginnings and endings of which are determined by the sighting of the crescent moon. Years are counted since the hijrah, which is when the Prophet Muhammad (peace be upon him) migrated from Makkah to Madinah (approximately July 622 CE).
The Islamic calendar was first introduced by the close companion of the Prophet, Omar Ibn Al Khattab. During his leadership of the Muslim community, in approximately 638 C E, he consulted with his advisers in order to come to a decision regarding the various dating systems used at that time. It was agreed that the most appropriate reference point for the Islamic calendar was the hijrah, since it was an important turning point for the Muslim community.
After the emigration to Madinah, the Muslims were able to organise and establish the first real Muslim “community,” with social, political, and economic independence. Life in Madinah allowed the Muslim community to mature and strengthen, and the people developed an entire society based on Islamic principles. The Islamic calendar is the official calendar in many Muslim countries, especially Saudi Arabia. Other Muslim countries use the Gregorian calendar for civil purposes and only turn to the Islamic calendar for religious purposes.
— Lunar Months Each Year
The Islamic year has twelve months that are based on a lunar cycle. God says in the Quran: The number of months in the sight of Allah is twelve (in a year) - so ordained by Him the day He created the heavens and the earth.... (Tawbah, 9:36).
It is He Who made the sun to be a shining glory, and the moon to be a light of beauty, and measured out stages for it, that you might know the number of years and the count of time. Allah did not create this except in truth and righteousness. And He explains His signs in detail, for those who understand. (Yunus, 10: 5)
And in his final sermon before his death, Prophet Muhammad (PBUH)said, among other things: “With Allah the months are twelve; four of them are holy; three of these are successive and one occurs singly between the months of Jumada and Sha’ban.” (Al Bukhari)
Islamic months begin at sunset of the first day, the day when the lunar crescent is visually sighted. The lunar year is approximately 354 days long, so the months rotate backward through the seasons and are not fixed to the Gregorian calendar.
months of Islamic year:
1. Muharram (“Forbidden” - it is one of the four months during which it is forbidden to wage war or fight)
2. Safar (“Empty” or “Yellow”)
3. Rabi’Al Awal (“First spring”)
4. Rabi’Al Thani (“Second spring”)
5. Jumada Al Awal (“First freeze”)
6. Jumada Al Thani (“Second freeze”)
7. Rajab (“To respect” - this is another holy month when fighting is prohibited)
8. Sha’ban (“To spread and distribute”)
9. Ramadan (“Parched thirst” - this is the month of daytime fasting)
10. Shawwal (“To be light and vigorous”)
11. Dhul-Qa’dah (“The month of rest” - another month when no warfare or fighting is allowed)
12. Dhul-Hijjah (“The month of Haj” - this is the month of the annual pilgrimage to Makkah, again when no warfare or fighting is allowed).