What is the meaning of [night brings counsel]

If you have a difficult problem to solve or an important decision to make, a good night’s sleep will work wonders