Differential equation for a correlation function of the spin-12 Heisenberg chain