The scientist who prepared hydrogen by the action of dilute acids on metals:
Scheele
Explanation for the correct option:
(d) Scheele was a German chemist who prepared hydrogen by the action of dilute acids on metals.
Explanation for the incorrect options:
(a) Henry Cavendish isolated Hydrogen (H) from the air left after the separation of Nitrogen (N) and Oxygen (O) gas.
(b) Joseph Black was a Scottish chemist who discovered Magnesium (Mg).
(c) Priestley is credited for the discovery of oxygen.
Hence, option (d) is correct.