1322 The Evangelist shows that their intention was perverse, saying, it was a Sabbath day when Jesus made the clay. He says this to show their evil intention and the reason why they sought Jesus, that is, to find a charge against him and detract from his miracle by his supposed violation of the law. Nevertheless, it should be said that "The Son of man is Lord of the Sabbath" (Mt 12:8).
Source: Commentary on John