When Fe(s) is dissolved in aqueous hydrochloric acid in a closed vessel, the work done is negative.
Fe reacts with HCl to form iron(III) chloride and hydrogen gas.
2Fe+6HCl→2FeCl3+3H2
The liberated hydrogen gas does the work. Since, the work is done by the system, it is negative.