If you are talking about the theory of evolution, fish did not evolve into mammals, they only had a similar ancestor that split into these species eventually which traces back to a common ancestor for everyone which is a eubacteria which everything evolved from.