How do I change the rotation matrix of the camera by the direction of the vector?

I want to adjust the position of the camera towards the cursor