When a funeral procession of a Jewish man passed by, the Prophet ﷺ stood up. He was told that it was the funeral of a Jew. He replied, 'Is it not a soul?' Aisha also reported that when he died, his iron coat of mail was pledged to a Jewish man in return for thirty measures of barley. He therefore did business with people of other faiths in the ordinary way, even when he was the leader of Medina.
He also said: 'Whoever kills a person who has a covenant with the Muslims will not smell the fragrance of Paradise, though its fragrance can be found from a distance of forty years' travel.' The Quran teaches that Allah does not forbid kindness and justice to those who did not fight Muslims over their religion or drive them from their homes, and that the Prophet's followers should argue with the People of the Book only in the best way.
To be fair, one must add that relations were not always peaceful. Muslim sources say that some tribes in Medina broke their agreements with the Prophet and were fought or expelled. The tribe of Banu Qurayza surrendered and accepted the judgment of Sa'd ibn Mu'adh, who ruled that their fighting men be killed, and non-Muslim historians debate the details. Muslims see these as conflicts over treaties and war, not as hatred of Jews or Christians as people. The related questions look at this more closely.