Compounds showing hydrogen bonding among $$HF, NH_3, H_2S$$ and $$PH_3$$ are
C
only $$HF$$ and $$NH_3$$ and $$PH_3$$
D
only $$NH_3$$, $$H_2S$$ and $$PH_3$$
Correct option is B. only $$HF$$ and $$NH_3$$
$$HF$$ has the hydrogen bond. The electronegativity difference is the large and therefore has the permanent dipole.$$NH_3$$ also form hydrogen bonds .
Hydrogen bond is formed between two molecules if they have hydrogen and any of the three electronegative atoms $$(N,O,F)$$ covalently bonded to each other . As there is no $$(N,O,F)$$ in $$H_2S$$ and$$PH_3$$, there is no hydrogen bond there although it has dipole dipole forces.
therefore Option $$B$$ is a correct answer.