Minister to quit at election