And feed others, maintain family ties, and pray at night while people are sleeping.
Yes, you will enter jannah in peace. These are the qualities the Prophet ﷺ mentioned.
A Muslim should embody them, including spreading peace.
So a Muslim should always make sure, wherever he walks, wherever he goes, to give salam. Ibn Umar used to.
May Allah be pleased with them both, he used to say: I go to the market not because I need anything, but just to give salam and receive salam.
That's all, I just want to give salam and people give salam to me, and I don't buy anything from the market, because usually there are people there for this reason.
Now things have become mixed, meaning Muslims and non-Muslims are together, so if you are in Mecca or Medina for example.
Give salam and feel at ease, because only Muslims enter there.
You give salam all the time. In other places, for example here in Kuwait.
You act based on what you mostly think is the case.
If you see someone wearing a ghutra and agal, what is he most likely?
Muslim, right? If not, if you see an Arab.
Also, most likely he is. There are Arab Christians.
But in most cases, they are the majority.
Muslims, and the same goes for foreigners.
For example, the Philippines, India. If he is Indonesian, he is Muslim. Their origin is Muslim. Malaysians, their origin is Muslim.
If a Filipino could be either, then you make the judgment.
If you think it is most likely that he is Muslim.
Give the greeting. If you think it is most likely that he is not Muslim, then refrain. If you are unsure, give the greeting.
It does not harm, inshaAllah the Exalted, and Allah knows best.