The magisterium didn't say that. The written Gospels said that.
The written Gospels as defined by the Magisterium under the inspiration of the Holy Spirit.
Check and mate, brother. Have a blessed Good Friday!