A priest has apologized for “hurtful” remarks about Islam. But was he correct to reference Catholic “teaching” in his apology?

A priest has apologized for “hurtful” remarks about Islam. But was he correct to reference Catholic “teaching” in his apology?