We have that
$$\lvert f''(x)+2xf'(x)+(x^{2}+1)f(x)\rvert\le1$$
Consider the function $g(x)=e^{\frac{x^2}{2}}f(x)$ then
$$\begin{align}
g'(x)&=xe^{\frac{x^2}{2}}f(x)+e^{\frac{x^2}{2}}f'(x)\\
g''(x)&=e^{\frac{x^2}{2}}f(x)+x^2e^{\frac{x^2}{2}}f(x)+xe^{\frac{x^2}{2}}f'(x)+xe^{\frac{x^2}{2}}f'(x)+e^{\frac{x^2}{2}}f''(x)\\
&=e^{\frac{x^2}{2}}(f''(x)+2xf'(x)+(x^2+1)f(x))
\end{align}$$
So we have that:
$$\left\lvert\frac{d^{2}}{dx^{2}}\left(e^{\frac{x^2}{2}}f(x)\right)\right\rvert\le e^{\frac{x^2}{2}}=\left((x^2+1)e^{\frac{x^2}{2}}\right)\frac{1}{x^2+1}=\frac{1}{x^2+1}\cdot\frac{d^2}{dx^2}\left(e^{\frac{x^2}{2}}\right)$$
So
$$\left\lvert\frac{\frac{d^2}{dx^2}\left(e^{\frac{x^2}{2}}f(x)\right)}{\frac{d^2}{dx^2}\left(e^{\frac{x^2}{2}}\right)}\right\rvert\le\frac{1}{x^2+1}\to0 \text{ as }x\to \infty$$
Now use the general form of L'hopital's rule (proved using the Stolz-Cesaro Theorem) to conclude that
$$\lim_{x\to\infty}\frac{\frac{d}{dx}\left(e^{\frac{x^2}{2}}f(x)\right)}{\frac{d}{dx}\left(e^{\frac{x^2}{2}}\right)}=\lim_{x\to\infty}\frac{\frac{d^2}{dx^2}\left(e^{\frac{x^2}{2}}f(x)\right)}{\frac{d^2}{dx^2}\left(e^{\frac{x^2}{2}}\right)}=0$$
Since $\frac{d}{dx}\left(e^{\frac{x^2}{2}}\right)=xe^{\frac{x^2}{2}}\to\infty$ as $x\to\infty$, applying the previous discussion again we conclude that:
$$\lim_{x\to\infty}f(x)=\lim_{x\to\infty}\frac{e^{\frac{x^2}{2}}f(x)}{e^{\frac{x^2}{2}}}=\lim_{x\to\infty}\frac{\frac{d}{dx}\left(e^{\frac{x^2}{2}}f(x)\right)}{\frac{d}{dx}\left(e^{\frac{x^2}{2}}\right)}=0$$