He said: "Never be a friend of Rome."

And he didn't say it as he was dying as he died away from Hannibal (ambush, so if Hannibal had been there he would hve died too).