Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) narrated: I heard the Prophet (peace and blessings be upon him) say: "Sayyiduna Nuh (peace be upon him) used to fast perpetually, except that he did not fast on the day of Eid al-Fitr and Eid al-Adha. Sayyiduna Dawud (peace be upon him) fasted half of the time (i.e. he would fast one day and not fast the next). Sayyiduna Ibrahim (peace be upon him) used to fast three days of every month; in this way he fasted all the time and also did not fast all the time (i.e. the reward of each day's fast is tenfold, so three days are equal to the whole month)." (Allamah al-Haythami says:) I say: The report about the fasting of Sayyiduna Nuh (peace be upon him) was recorded by Imam Ibn Majah, and the report about the fasting of Sayyiduna Dawud (peace be upon him) is in the Sahih.
Imam al-Tabarani recorded it in al-Mu'jam al-Kabir. Its chain contains a narrator, Abu Qanan, and I do not know him.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصيام / 5180