We extend a theorem of Hunt, Muckenhoupt and Wheeden on weighted norm inequalities for the Hilbert transform. Our generalization to locally compact abelian groups is formulated in terms of the ergodic Hilbert transform and the ergodic A(p)-condition.