The Miami Seaquarium has reached an agreement with nonprofit Friends of Lolita to return the whale to the ocean.