In my project, I have two vectors a normal vector $(0,0,1)$ (this is up in the program I'm using), and another normalized vector $(x,y,z)$. Suppose I rotate $(0,0,1)$ to a new $(a,b,c)$ which is also a normalized vector from the origin, how do I find the position of the new $(x,y,z)$ which rotated along with it. What I think might work is finding the rotation matrix between $(0,0,1)$ and $(a,b,c)$ and applying that rotation matrix to $(x,y,z)$, but I don't know how to find the rotation matrix between them. Below is an example, the red is $(0,0,1)$ in case 1 and $(a,b,c)$ in the rest of them, and blue is $(x,y,z)$ and $(x', y', z')$(or what I think $(x',y',z')$ is).
Also if it is indeed the rotation matrix between $(0,0,1)$ and $(a,b,c)$ that is being applied to $(x,y,z)$ I think it should be the simplest rotation matrix from $(0,0,1)$ to $(a,b,c)$, because if I'm not wrong there should be infinitely many rotation matrices between those two.
The motion of the rotation also matters, as I want $(0,0,1)$ to move to $(a,b,c)$ along a plane, as demonstrated below. The drawn orange vector on the right is perpendicular to this plane.


Given the vector $V = (0, 0, 1)$ and the unit vector $W = (a, b, c)$, and the vector $U = (x, y, z)$, you want to rotate $V$ into $W$ and along with this, you want to apply the same rotation to $U$ which will result in vector $U' = (x', y', z') $
It is required in the question that the axis of rotation be perpendicular to the plane that contains $V$ and $W$. Therefore, the unit vector along the axis is
$ u = \dfrac{ V \times W }{ \|V \times W\| } $
Since $V$ and $W$ are unit vectors, the angle of rotation $\phi$ satisfies
$ \cos(\phi) = V \cdot W $
and
$ \sin(\phi) = \| V \times W \| $
now, $\phi$ can be computed as $ \phi = \text{Atan2}(\cos(\phi), \sin(\phi) ) $
Now we apply the Rodrigues' Rotation matrix formula, which states that given an axis $u$ and an angle of rotation $\phi $ , then the rotation matrix is given by
$ R(u, \phi) = {u u}^T + (I - {u u}^T ) \cos(\phi) + S_u \sin(\phi) $
where
$S_u = \begin{bmatrix} 0 && - u_z && u_y \\ u_z && 0 && -u_x \\ -u_y && u_x && 0 \end{bmatrix} $
With this rotation matrix, we can now find $ U' $ as follows
$ U' = R \ U $