This isn't true, by a compactness argument.
Suppose that $\varphi$ be a sentence of first-order logic such that for every finite graph $G,$ $G\models\varphi$ iff every vertex of $G$ lies on some cycle. We'll show that this can't be true also for every infinite graph.
Expand your language by adding a new constant symbol $c,$ and consider the theory $T=\lbrace \varphi \rbrace \cup \lbrace "\\!c\text{ does not lie on a cycle of length exactly }n\\!" \mid 0\lt n\lt \omega\rbrace.$
Then every finite subset of $T$ is satisfiable (by, for example, a finite graph consisting of one large cycle of length longer than any of the lengths mentioned in the particular finite subset of $T).$
Therefore $T$ is satisfiable. But any model of $T$ is a graph which satisfies $\varphi$ but in which the interpretation of the constant symbol $c$ lies on no cycle.