Check that the hose discharge from the washing machine loops up above the minimum height as specified by the machine manufacturer and at least to the underside of the worktop for an inset sink before connecting into the sink trap. See installation details for washing machine traps.