A search for the decay of a Standard Model Higgs boson into a pair when produced in association with a or boson has been performed with the ATLAS detector. Data were collected in proton-proton collisions from Run 2 of the Large Hadron Collider at a centre-of-mass energy of 13 TeV, corresponding to an integrated luminosity of 13.2 fb. Final states are considered that contain 0, 1 and 2 charged leptons (electrons or muons), targeting the decays: , , and . For ~GeV the ratio of the measured signal strength to the SM expectation is found to be . This corresponds to an observed significance of 0.42 standard deviations compared with an expected sensitivity of 1.94. The analysis procedure has been validated by measuring the yield of with , where the ratio of the observed yield to that expected in the Standard Model was found to be , corresponding to a significance of 3.0 standard deviations compared to an expected significance of 3.2.