As someone mentioned in a comment, we need the condition that $\lambda \geq 0$. Also, I believe that the correct statement to prove should be that $OX \subseteq OY$ or $OY \subseteq OX$.
Given that $O = (0, 0, ..., 0)$, we can write $OX = \{ tX \; : \; 0\leq t \leq 1\}$, and similarly we can write $OY = \{ tY\; : \; 0\leq t \leq 1\}$. Since $Y = \lambda X$ for some non-negative $\lambda$, then we have $\{OY = \{ t(\lambda X) \; : \; 0\leq t \leq 1\} = \{ (t\lambda) X \; : \; 0\leq t \leq 1\} = \{ tX \; : \; 0\leq t \leq \lambda\}$, where in the last equality we made the observation that \begin{equation}
\{t : 0\leq t \leq \lambda \} = \{t\lambda : 0 \leq t \leq 1\}.\end{equation}
So, we now see that $OY = \{ tX\; : \; 0\leq t \leq \lambda\}$ and $OX = \{ tX\; : \; 0\leq t \leq 1\}$. From here we conclude that $OY \subset OX$ if $0 \leq \lambda < 1$, and $OX \subset OY $ if $\lambda > 1$, and that $OX = OY$ if $\lambda = 1$.