islam 's spectacular expansion throughout the middle east and beyond to spain and the borders of china shortly after the religion was founded in the 6th century was attributed primarily to moslems ' fanatical willingness to wage a holy war .