The correct statement is:
The fossil is older than the layer of rock it was formed in.
In geological terms, when a fossil is found within a layer of rock, it is typically assumed to be older than the rock surrounding it, as the rock layer must have formed after the fossil was created.