The Prophet’s first command to the Muslims when he arrived in Medina after Hijrat:
Abdullah ibn Salam رضي الله ﺗﻌﺎﻟﯽٰ عنه said: When the Messenger of Allah, peace and blessings be upon him, came to Medina, the people rushed towards him and it was said, “The Messenger of Allah has come!” I came along with the people to see him, and when I looked at the face of the Messenger of Allah, I realized that his face was not the face of a liar.
The first thing he said was:
يَا أَيُّهَا النَّاسُ أَفْشُوا السَّلَامَ وَأَطْعِمُوا الطَّعَامَ وَصَلُّوا بِاللَّيْلِ وَالنَّاسُ نِيَامٌ تَدْخُلُوا الْجَنَّةَ بِسَلَامٍ
"O people, spread Salaam, feed the hungry, and pray at night when people are sleeping and you will enter Paradise in peace."
Source: Sunan Ibn Majah 1334, Grade: Sahih, Also in Tirmidhi, mishkat, etc
*The very first command given to the Muslims in Madina after hijrat of the Holy Prophet ﺻﻠﯽ الله ﺗﻌﺎﻟﯽٰ ﻋﻠﯿﮧ ﻭﺍٓﻟﮧ ﻭﺳﻠﻢ as a ruler of the city wasn't political, it was social and highly spiritual. And the community was made to focus on the individual goal of Jannah.
Food for thought!