"All that God commands is of consequence. Christ recognized the payment of tithes as a duty; but He showed that this could not excuse the neglect of other duties. The Pharisees were very exact in tithing garden herbs, such as mint, anise, and rue; this cost them little, and it gave them a reputation for exactness and sanctity. At the same time their useless restrictions oppressed the people and destroyed respect for the sacred system of God's own appointing. They occupied men's minds with trifling distinctions, and turned their attention from essential truths. The weightier matters of the law, justice, mercy, and truth, were neglected. “These,” Christ said, “ought ye to have done, and not to leave the other undone.” DA 617.1"
"Woe unto you, scribes and Pharisees, hypocrites! for ye pay tithe of mint and anise and cummin, and have omitted the weightier matters of the law, judgment, mercy, and faith: these ought ye to have done, and not to leave the other undone."
The EGW passage directly quotes Matthew 23:23 and provides context and explanation.
"Other laws had been perverted by the rabbis in like manner. In the directions given through Moses it was forbidden to eat any unclean thing. The use of swine's flesh, and the flesh of certain other animals, was prohibited, as likely to fill the blood with impurities, and to shorten life. But the Pharisees did not leave these restrictions as God had given them. They went to unwarranted extremes. Among other things the people were required to strain all the water used, lest it should contain the smallest insect, which might be classed with the unclean animals. Jesus, contrasting these trivial exactions with the magnitude of their actual sins, said to the Pharisees, “Ye blind guides, which strain at a gnat, and swallow a camel.” DA 617.2"
"And every creeping thing that creepeth upon the earth shall be an abomination; it shall not be eaten."
While the EGW passage doesn't directly quote Leviticus 11:41, it uses the principle of avoiding unclean things to illustrate how the Pharisees added unnecessary and burdensome restrictions, contrasting it with the 'gnat and camel' saying from Matthew 23:24. The Leviticus verse provides the basis for the discussion of clean and unclean things.
"“Woe unto you, scribes and Pharisees, hypocrites! for ye are like unto whited sepulchers, which indeed appear beautiful outward, but are within full of dead men's bones, and of all uncleanness.” As the whited and beautifully decorated tomb concealed the putrefying remains within, so the outward holiness of the priests and rulers concealed iniquity. Jesus continued: DA 617.3"
"Woe unto you, scribes and Pharisees, hypocrites! for ye are like unto whited sepulchres, which indeed appear beautiful outward, but are within full of dead men’s bones, and of all uncleanness."
EGW directly quotes and elaborates on the meaning of Matthew 23:27.