Hello,

As long as your future husband is a EU national and resident in Spain, you will be able to request your residence permit based on his. It is not necessary to prove that he is currently working.