While we don't know for sure which planet formed first, the most likely candidate is Mercury, as it is the closest to the Sun and has a relatively small mass.
However, it's important to remember that the formation of the solar system was a gradual process, and all the planets formed over a long period of time.