Hydrogen sulfide (H2S) is molecule created by one sulfur atom combining with 2 hydrogen atoms. The molecule has a bent shape with sulfur being the central atom. Sulfur has an electronic configuration of [Ne] 3s2 3p4. To achieve a stable outermost electron shell, 2 electrons have to form electron pairs. This results in 8 electrons in the outermost shell which is a stable configuration. Each of the hydrogen atoms shares one electron that allows each of them to have a stable configuration with two electrons in the outermost shell.
When hydrogen sulfide is being formed there are 2 pairs of electrons in the central atom that are not shared.