I want to prove following identity:
$$\oint_{\partial S} \psi \,\mathrm{d}\ell = -\iint_S \nabla \psi \times \mathrm{d}S. $$
Here $\psi$ is a scalar function. I'm in trouble about understanding this expression. I haven't seen both sides of equality anywhere. The divergence theorem and the Stokes' theorem doesn't seem related to the question.
You can use the fact:
For any constant vector $k$, we have
$$\require{cancel}\begin{align}k \cdot \oint_{\partial S} \psi d\ell &= \oint_{\partial S} (\psi k) \cdot d\ell\\ \color{blue}{\text{Stoke's theorem }\rightarrow}&= \int_{S} (\nabla \times (\psi k)) \cdot dS\\ &= \int_{S} ((\nabla \psi) \times k + \psi \color{red}{\cancelto{0}{\color{gray}{(\nabla \times k )}}})\cdot S\\ &= -\int_{S} k \cdot (\nabla \psi \times dS )\\ &= -k\cdot \int_S \nabla \psi \times dS \end{align} $$ Since this is true for all $k$, you get
$$\oint_{\partial S} \psi d\ell = -\int_S \nabla \psi \times dS$$