A squeeze treatment method for scavenging hydrogen sulfide in a production fluid, the method comprising: pumping a treatment fluid under pressure through a wellbore into a subterranean formation and maintaining the treatment fluid in the region around the wellbore for a predetermined period of time, wherein the treatment fluid includes a hydrogen sulfide scavenging compound that adsorbs onto the subterranean formation in a region around the wellbore; flowing production fluids from the subterranean formation into the wellbore, wherein the production fluids contact the adsorbed hydrogen sulfide scavenging compound as the production fluids flow through the region around the wellbore, wherein the production fluids contain hydrogen sulfide that reacts with the hydrogen sulfide scavenging compound to reduce an amount of hydrogen sulfide in the production fluids before the production fluids flow into the wellbore; characterized in that the hydrogen sulfide scavenging compound is selected from the group consisting of bis(hydroxymethyl)maleate, (2E,4E)-hydroxymethyl hexa-2,4-dienoate, -hydroxymethyl but-2-enoate, -bis(hydroxymethyl) O,O'-(2-hydroxypropane-1,3-diyl)difumarate, hydroxymethyl 6-(2,5-dioxo-2,5-dihydro-1H-pyrrol-1-yl)hexanoate, sorbic acid, glycerol bis hemiformal mono phosphate ether, oligomeric glycerol bis hemiformal di-phosphate ether, glycerol bis hemiformal mono sulfate ether, oligomeric glycerol bis hemiformal di-sulfate ether, (2E,2'E-4,4'-((2-hydroxypropane-1,3-diyl)bis(oxy))bis(4-oxobut-2-enoic acid), 1,3-bis(hydroxymethoxy)propan-2-yl propionate, oxybis(1-(hydroxymethyoxy)propane-3,2-diyl) dipropionate, 1,1'-((oxybis(1-(hydroxymethoxy)propane-3,2-diyl)bis(oxy)bis(propan1-ol). pumping a treatment fluid under pressure through a wellbore into a subterranean formation and maintaining the treatment fluid in the region around the wellbore for a predetermined period of time, wherein the treatment fluid includes a hydrogen sulfide scavenging compound that adsorbs onto the subterranean formation in a region around the wellbore; flowing production fluids from the subterranean formation into the wellbore, wherein the production fluids contact the adsorbed hydrogen sulfide scavenging compound as the production fluids flow through the region around the wellbore, wherein the production fluids contain hydrogen sulfide that reacts with the hydrogen sulfide scavenging compound to reduce an amount of hydrogen sulfide in the production fluids before the production fluids flow into the wellbore; characterized in that the hydrogen sulfide scavenging compound is selected from the group consisting of bis(hydroxymethyl)maleate, (2E,4E)-hydroxymethyl hexa-2,4-dienoate, -hydroxymethyl but-2-enoate, -bis(hydroxymethyl) O,O'-(2-hydroxypropane-1,3-diyl)difumarate, hydroxymethyl 6-(2,5-dioxo-2,5-dihydro-1H-pyrrol-1-yl)hexanoate, sorbic acid, glycerol bis hemiformal mono phosphate ether, oligomeric glycerol bis hemiformal di-phosphate ether, glycerol bis hemiformal mono sulfate ether, oligomeric glycerol bis hemiformal di-sulfate ether, (2E,2'E-4,4'-((2-hydroxypropane-1,3-diyl)bis(oxy))bis(4-oxobut-2-enoic acid), 1,3-bis(hydroxymethoxy)propan-2-yl propionate, oxybis(1-(hydroxymethyoxy)propane-3,2-diyl) dipropionate, 1,1'-((oxybis(1-(hydroxymethoxy)propane-3,2-diyl)bis(oxy)bis(propan1-ol).