I use cycles GPU. My light source is at left but the shadow also at the left. I think that the point light did'nt work and it uses scene light. I try to tick on the scene world under viewport shading and it turn all dark. I even don't understand the lighting option under the viewport shading. And when I render, the picture is darker than preview. Thanks for your help!
The second screenshot shows a correct preview, since Scene Lights and Scene World are enabled. If Scene World is disabled, an HDRI is used to light the scene preview. With Scene Lights off, your point light is ignored, hence the wrong shadow. The options are explained in the manual.
Use the lights in the scene when rendering the scene.
Use the world of the scene when rendering the scene. When turned off a world will be constructed with the next options.
The environment map used to light the scene.
The rotation of the environment on the Z axis.
Light intensity of the environment.
The opacity level of a very blurred version of > the HDRI will be rendered as background in the 3D View.