A search for the standard model Higgs () boson produced with transverse momentum greater than 450~\text{GeV} and decaying to charm quark-antiquark pairs () is performed using proton-proton collision data collected by the CMS experiment at the LHC at \sqrt{s}=13~\text{TeV}. The data sample corresponds to an integrated luminosity of 138\,\text{fb}^{-1}. The search is inclusive in production mode. Highly Lorentz-boosted decaying to are reconstructed as single large-radius jets, and are identified using a dedicated charm tagging technique based on a deep neural network. The method is validated with the decay process, which is observed for the first time in the +jets production mode at a hadron collider with a significance of well over 5 standard deviations and a signal strength of relative to the standard model prediction. A 95\% confidence level observed (expected) upper limit is set on the signal strength of 45 (38) times the standard model prediction.