4 Then the king said unto me, For what dost thou make request? So I prayed to the God of heaven.
The king asked Nehemiah a question and before Nehemiah answered the king, he went to the King of kings in prayer. Nehemiah knew he needed to seek God's wisdom before he opened his mouth.
This is an example of how to "pray without ceasing" (1 Thessalonians 5:17)
Nehemiah went to the lord whenever he needed His wisdom. He didn't wait until his scheduled time with God; he went at the very moment he needed to seek Him. Nehemiah didn't just spout off an answer; he was of the mindset to seek God first.
A common saying is "think before you speak", but maybe a better saying would be "pray before you speak."