Islamic years are often called hijra years , because the first year of the calendar when the hijra occurred , that is when Muhammad went from Mecca to Medina .
The first year was the year during which the emigration of the Islamic prophet Muhammad from Mecca to Medina , known as the Hijra , occurred .