later while the donegal was riding at anchor off cadiz in mountainous seas , a spanish prisoner fell overboard and two british tars dived into the treacherous waves in a vain rescue bid , to the astonishment of the spaniards on board .