The following question might be a duplicate but I couldn't find anything when I searched just now. (I also would not object hugely if the question gets moved to MSE except that I do not have an account there and so would not be able to respond to comments or accept answers.)
It seems to be folklore that Goursat's lemma from group theory works for other kinds of algebraic structure. An answer to this older MO question gives precise conditions on a category that are sufficient and close-to-necessary for the natural "abstract Goursat lemma" to be valid.
In particular, it seems that this should work for rings. That is, suppose $T$ is a subdirect product of $R\times S$ where $R$ and $S$ are not-necessarily-commutative rings, and $\pi_R:R\times S \to R$, $\pi_S:R\times S \to S$ are the coordinate projections. Then we have ideals $R_0 = \pi_R( T\cap \ker\pi_S) \unlhd R$ and $S_0=\pi_S(T\cap \ker\pi_R)\unlhd S$ and if I am not mistaken the calculation shown in the MO question I linked to shows that $T$ "descends" to the graph of a ring isomorphism $R/R_0 \to S/S_0$.
In some work with my PhD student, we found ourselves needing a special case of this result which we proved by hand. Only later did it occur to me that what we had done should be a special case of a more general known result, and then this led me to look up Goursat's lemma.
My question is this: can someone supply a reference to the literature, such as one of the standard "books people in North American systems read to prefer for qualifier/comprehensive exams", which states Goursat's lemma for rings, and does not deduce it from some general result about e.g. exact Mal'cev categories?
I would prefer that my PhD student does not needlessly reinvent the wheel if there is a clear statement that can be quoted, but I also don't want to force them to suddenly start learning general category-theoretic language when the application we have in mind is much more concrete and specialized.