In the laboratory dinitrogen is prepared by
heating an aqueous solution containing an
equivalent amount of ammonium chloride and
sodium nitrite
$NH_4 CI(aq) + NaNO_2 (aq)\, \xrightarrow{Heat} \, N_2 (g) $
$ \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, + 2H_2O(I) + NacI$