Sunan Ibn Majah, Book 7, Hadith 18 (Ibn Majah 1655)

It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:

“When you see the new crescent then fast, and when you see it then stop fasting. If it is cloudy then fast thirty days.”