Both [Ni(CO)4] and [Ni(CN)4]2− are diamagnetic. The hybridizations of nickel in these complexes, respectively, are:
In [Ni(CO)4], Ni is in 0 oxidation state so there are 8 electrons in 3 d subshell and 2 electrons in 4s. CO is the strong ligand, so it does pairing with the d subshell atom leaving one d subshell with unpaired electron.now the electron from s shell shifts to d creating vacant space in s subshell and thus the hybridization is sp3
In [Ni(CN)4]2−, Ni is in +2 oxidation state so it has 8 electrons in d subshell and CN is also a strong ligand which pairs with d subshell atom and leaves one d orbital empty and thus its hybridization is dsp2