Lumps in the scrotum may be infection, even tubercular. Some lumps are blood clots and occur due to minor trauma.
Hernias may also present as scrotal lumps. Any of these lumps may be painful.
Some lumps are cancerous. Cancerous lumps are usually (but not always) painless. However, one must never take chances, and your husband must visit a doctor.