For an atom to be stable in nature, it is required that the atom must have more number of neutrons as compared to protons.
But if the atom has more number of protons then due like positive charge more repulsion will occur inside the nucleus and therefore, the atom will become unstable. This is because then electrostatic force of repulsion will be greater than the nuclear binding force.
Thus, we can conclude that a stable atom that has a large nucleus most likely contains more neutrons than protons.
Whether you get the metal or hydrogen during electrolysis depends on the position of the metal in the reactivity series: the metal will be produced if it is less reactive than hydrogen. hydrogen will be produced if the metal is more reactive than hydrogen.