One of the scribes came. See notes on Matthew 22:34-40. Matthew adds that the scribe asked his question, "tempting him" (Matthew 22:35); that is, "testing him".