Muhammad(pbuh) and warfare

Can anyone post relevant ayats and ahadith that relate to the conduct of warfare by muslims
esp. regarding surrendering enemy soldiers
Non-combatanats men and women I know they can be enslaved but any conditions on that
Pillaging is it allowed or not

.