Prophet Muhammad (PBUH) was sent as a mercy to this world, so he refused to pray against those who tried to kill him; rather he prayed for them to join him. He also established rules of war and said if anyone was unjust to prisoners of war they would not go to Paradise.