The paper deals with the matrix equation
A
X
B
+
C
X
D
=
E
over the generalized quaternions. By the tools of the real representation of a generalized quaternion matrix, Kronecker product as well as vec-operator, the paper derives the necessary and sufficient conditions for the existence of a Hermitian solution and gives the explicit general expression of the solution when it is solvable and provides a numerical example to test our results. The paper proposes a unificated algebraic technique for finding Hermitian solutions to the mentioned matrix equation over the generalized quaternions, which includes many important quaternion algebras, such as the Hamilton quaternions and the split quaternions.