Sentence:  Every one that passeth thereby shall be astonished, and <WSD>wag</WSD> his head. 
Meaning of the word marked with <WSD> tags:  To swing from side to side, such as of an animal's tail, or someone's head, to express disagreement or disbelief.