 On 10 June 1796 Nelson transferred his pennant to HMS Captain , Captain John Samuel Smith replacing him as Agamemnon 's commander . Having been deemed in great need of repair , Agamemnon then returned to England . 
