"Frequently, when brought into strait places, the entire night was spent in earnest, agonizing prayer, with tears, for help from God, and for light to shine upon His word. When the light did come, and the clouds were driven back, what joy and grateful happiness rested upon the anxious, earnest seekers! Our gratitude to God was as complete as had been our earnest, hungering cry for light. Some nights we could not sleep because our hearts were overflowing with love and gratitude to God. GW 321.3"
"And it came to pass in those days, that he went out into a mountain to pray, and continued all night in prayer to God."
Both passages describe spending the entire night in prayer. The EGW passage amplifies the idea of earnest prayer for divine guidance, echoing the example set by Jesus in Luke.