From eqn. $(4.8)$ in Nielsen and Chuang, a general rotation by $\theta$ about the $\hat n$ axis is given by $$ R_\hat{n}(\theta)\equiv \exp(-i\theta\hat n\cdot\vec\sigma/2) = \cos(\theta/2)I-i\sin(\theta/2)(n_xX+n_yY+n_zZ). $$ From the qiskit textbook, a generic single-qubit gate is defined as $$ U(\theta, \phi, \lambda) = \begin{pmatrix} \cos\left(\frac{\theta}{2}\right) & -e^{i\lambda} \sin\left(\frac{\theta}{2}\right) \\ e^{i\phi} \sin\left(\frac{\theta}{2}\right) & e^{i(\lambda + \phi)} \cos\left(\frac{\theta}{2}\right) \end{pmatrix}. $$ I tried to work out the matrix representation of $R_\hat{n}(\theta)$ but it looks like the first entry of that should be $\cos(\theta/2)-i\sin(\theta/2)n_z$, which is different from that of $U(\theta,\phi,\lambda)$, i.e. $\cos(\theta/2)$.
I'm wondering how does $R_\hat{n}(\theta)$ related to $U_3$ gate? In other words, given a unit vector $\hat n$ and a rotation angle $\theta$, can we represent $R_\hat{n}(\theta)$ using $U_3$?