Sunan Abi Dawud, Book 14, Hadith 137 (Abu Dawud 2450)

Narrated Qatadah Ibn Malhan al-Qaysi:

The Messenger of Allah (ﷺ) used to command us to fast the days of the white (nights): thirteenth, fourteenth and fifteenth of the month. He said: This is like keeping perpetual fast.