Hello @Joycebaby
Nice to hear from you again.
As long as your future husband is German (or a EU citizen) you have a right to get a residence permit after getting married to him. It doesn't matter in this context that he is unemployed.
Keep in mind that you have to get a so-called "Visum zur Eheschließung" (visa to get married). It's not allowed to marry in Germany if your visa wasn't issued for this specific purpose (e.g. a tourist visa is not sufficient).
Best regards,
Thorgen