The word jihad as “fighting” does come up in the Qur’an, bound explicitly to self-defense. Those verses were revealed at a time when the Quraysh were trying to erase Islam and Muslims from the face of the earth. In that context, it was no stretch to argue that fighting had a moral dimension: if the community of believers was what made justice possible on earth, then those who let hostile forces extinguish it were helping Satan, while those who put lives and property at risk to defend it were serving Allah.