Prophet Muhammad(pbuh) encouraged people to love each other.

Muhammed (pbuh) said: “I swear by God that you will not be true believers in Him unless you love each other. I will tell you something, if you do it you will love each other. Greet each other frequently and make it a common habit.

And Said: “No one will become a good believer unless he wishes for his brethren what he likes for himself.”

Also Said: “Whoever helps a believer overcome a difficulty, God will help him overcome a difficulty at the Day of Judgment, and God will always help an individual as long as he/she is helping others”

Riyadh Al-Salihin (183/3), Sahih Al-Bukhari(13).