"Then I was shown a company who were howling in agony. On their garments was written in large characters. “Thou art weighed in the balance, and found wanting.” I asked who this company were. The angel said, “These are they who have once kept the Sabbath, and have given it up.” I heard them cry with a loud voice, “We have believed in Thy coming, and taught it with energy.” And while they were speaking, their eyes would fall upon their garments and see the writing, and then they would wail aloud. I saw that they had drunk of the deep waters, and fouled the residue with their feet,—trodden the Sabbath underfoot,—and that was why they were weighed in the balance and found wanting. LS 117.2"
"TEKEL; Thou art weighed in the balances, and art found wanting."
The EGW passage directly quotes the phrase 'Thou art weighed in the balance, and found wanting,' which is a direct quote from Daniel 5:27.