"Then Peter and the other apostles answered and said, We ought to obey God rather than men."
The EGW passage directly echoes the sentiment and wording of Acts 5:29. It's a clear and intentional reference.
Moses remained at court until he was forty years of age. His thoughts often turned upon the abject condition of his people, and he visited his brethren in their servitude, and encouraged them with the assurance that God would work for their deliverance. Often, stung to resentment by the sight of injustice and oppression, he burned to avenge their wrongs. One day, while thus abroad, seeing an Egyptian smiting an Israelite, he sprang forward and slew the Egyptian. Except the Israelite, there had been no witness to the deed, and Moses immediately buried the body in the sand. He had now shown himself ready to maintain the cause of his people, and he hoped to see them rise to recover their liberty. “He supposed his brethren would have understood how that God by his hand would deliver them; but they understood not.” Acts 7:25 . They were not yet prepared for freedom. On the following day Moses saw two Hebrews striving together, one of them evidently at fault. Moses reproved the offender, who…
"For he supposed his brethren would have understood how that God by his hand would deliver them: but they understood not."
Ellen White directly references Acts 7:25 in this passage.