Below are two articles that define both and provide examples. The Muller definition states that mediation is when a variable is "responsible for the casual effect" (i.e. variable B is the mechanism explaining why A is related to C). On the other hand, a moderating variable may change "the magnitude of the casual effect" (most commonly associated with interaction effects).
Muller, D., Judd, C. M., & Yzerbyt, V. Y. (2005). When moderation is mediated and mediation is moderated. Journal of personality and social psychology, 89(6), 852.
Preacher, K. J., Rucker, D. D., & Hayes, A. F. (2007). Addressing moderated mediation hypotheses: Theory, methods, and prescriptions. Multivariate behavioral research, 42(1), 185-227.