I'd like to attain the identity in the title. Before we start, let me introduce some definitions. Thank you. The book I currently use is the one written by John M. Lee on Riemannian manifolds.
... The most important such tensor is the Ricci curvature or Ricci tensor, denoted by Rc (or often Ric in the literature), which is the covariant $2$-tensor field defined as the trace of curvature endomorphism on its first and last indices. Thus for vector fields $X,Y$, $$Rc(X,Y)=\mathrm{tr}(\ Z\mapsto R(Z,X)Y\ ).$$ The components of Rc are usually denoted by $R_{ij}$, so that $$R_{ij}=R_{kij}\ ^k=g^{km}R_{kijm}.$$
I'm not worried about the second equality: just substitute $g_{ml}R_{kij}\ ^l$ for the components $R_{kijm}$ of the Riemann curvature tensor given by $$Rm(X,Y,Z,W)=\left<R(X,Y)Z,W\right>_g.$$ We have used $R$ to denote the $(1,3)$-curvature tensor given by $$R(X,Y)Z=\nabla_X\nabla_Y Z-\nabla_Y\nabla_X Z-\nabla_{[X,Y]}Z,$$ and its components can be determined by $R(\partial_i,\partial_j)\partial_k=R_{ijk}\ ^l\partial_l$. Now let us go back to the first equality $R_{ij}=R_{kij}\ ^k$. How could I attain this result? Thank you.