Hydrogen is not a source of energy but rather a form of energy storage. Regardless of the source of energy used to produce the hydrogen, the overall process is an energy net negative. In other words, it takes more energy to produce hydrogen than is produced by burning it.
Newton's laws of thermodynamics.