Islamic jurists required adult, free, sane, able-bodied males of military age with no religious functions among the dhimma community to pay the jizya, while exempting women, children, elders, handicapped, monks, hermits, the poor, the ill, the insane, slaves, as well as musta'mins (non-Muslim foreigners who only temporarily reside in Muslim lands) and converts to Islam. Dhimmis who chose to join military service were exempted from payment. If anyone could not afford this tax, they would not have to pay anything. Sometimes a dhimmi was exempted from jizya if he rendered some valuable services to the state.