Let $k$ be a field of characteristic 0 and let $\varphi:\mathfrak{g}\rightarrow\mathfrak{f}$ and $\psi:\mathfrak{h}\rightarrow\mathfrak{f}$ be maps of Lie algebras. Is there a reference showing that the pullback (in the category of Lie $k$-algebras) of $\mathfrak{g}$ and $\mathfrak{h}$ along these maps is given by the following formula
$\mathfrak{g}\times_\mathfrak{f}\mathfrak{h}=\{(x,y)\in\mathfrak{g}\times\mathfrak{h}\mid \varphi(x)=\psi(y)\}$
EDIT: Just to be extra clear. I do know how to prove it, but I cannot find a place in the literature where this is proved or stated and I was wondering if you knew of one.