Consider the following relations
$$H_0|\psi_a\rangle = E_a|\psi_a\rangle$$ $$H_0|\psi_b\rangle = E_b|\psi_b\rangle$$
I am struggling then to understand why the following identity holds (its probably straight forward but I just can not see it.) Note that r represents the position operator.
$$ \langle \psi_b| rH_0 - H_0r|\psi_a\rangle = (E_a - E_b)\langle \psi_b| r|\psi_a\rangle$$