Sunan Abi Dawud, Book 2, Hadith 171 (Abu Dawud 561)

Narrated Buraydah ibn al-Hasib:

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.