The Prophet (ﷺ) said: Give good tidings to those who walk to the mosques in darkness for having a perfect light on the Day of Judgment.
Sunan Abi Dawud Book 2, Hadith 171