He established the Nobel Prizes in his will, which included the Nobel Peace Prize. He did win the Nobel Prize in Literature in 1901.
It's a common misconception that Nobel won the Peace Prize because of his invention, but he actually wanted to promote peace and believed that his invention, while dangerous, could help reduce the number of casualties in war.