The Prophet, may Allah’s prayers and peace be upon him, faced great difficulties, the most severe of which were in one year that was called the Year of Grief. But then Allah Almighty rewarded him with a unique gift
"In the thirteenth year of the Prophet's mission, the polytheists gathered and decided to find a way to get rid of the Prophet, peace and blessings be upon him.
But Allah's will wanted for things to take a new turn"
The Prophet, may Allah’s prayers and peace be upon him, arrived in Medina whose name was not only changed to “Al-Madinah Al-Munawwarah,” but also the Hijri calendar started in it along with the foundations of a state that was the best nation ever existed.