The most terrifying calamity that could occur had befallen Israel. The ark of God had been captured, and was in the possession of the enemy. The glory had indeed departed from Israel when the symbol of the abiding presence and power of Jehovah was removed from the midst of them. With this sacred chest were associated the most wonderful revelations of God's truth and power. In former days miraculous victories had been achieved whenever it appeared. It was shadowed by the wings of the golden cherubim, and the unspeakable glory of the Shekinah, the visible symbol of the most high God, had rested over it in the holy of holies. But now it had brought no victory. It had not proved a defense on this occasion, and there was mourning throughout Israel. PP 584.1 They had not realized that their faith was only a nominal faith, and had lost its power to prevail with God. The law of God, contained in the ark, was also a symbol of His presence; but they had cast contempt upon the commandments, had d…
"And she named the child I–chabod, saying, The glory is departed from Israel: because the ark of God was taken, and because of her father in law and her husband."
The EGW passage directly alludes to the sentiment and event described in 1 Samuel 4:21, the departure of glory from Israel due to the ark's capture.
"It was not enough that the ark and the sanctuary were in the midst of Israel. It was not enough that the priests offered sacrifices, and that the people were called the children of God. The Lord does not regard the request of those who cherish iniquity in the heart; it is written that “he that turneth away his ear from hearing the law, even his prayer shall be abomination.” Proverbs 28:9 . PP 584.3"
"He that turneth away his ear from hearing the law, even his prayer shall be abomination."
The EGW passage directly quotes Proverbs 28:9.