Sunan Ibn Majah, Book 7, Hadith 1723 (In-Book)

It was narrated from Ibn ‘Umar that the Messenger of Allah said: ‘When you see the new crescent, fast, and when you see it, stop fasting. If it is cloudy then calculate it (as thirty days).” Ibn ‘Umar used to fast one day before the new crescent was seen.

حَدَّثَنَا أَبُو مَرْوَانَ، مُحَمَّدُ بْنُ عُثْمَانَ الْعُثْمَانِيُّ حَدَّثَنَا إِبْرَاهِيمُ بْنُ سَعْدٍ، عَنِ الزُّهْرِيِّ، عَنْ سَالِمِ بْنِ عَبْدِ اللَّهِ، عَنِ ابْنِ عُمَرَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏ "‏ إِذَا رَأَيْتُمُ الْهِلاَلَ فَصُومُوا وَإِذَا رَأَيْتُمُوهُ فَأَفْطِرُوا ‏.‏ فَإِنْ غُمَّ عَلَيْكُمْ فَاقْدُرُوا لَهُ ‏" ‏ ‏.‏ قَالَ وَكَانَ ابْنُ عُمَرَ يَصُومُ قَبْلَ الْهِلاَلِ بِيَوْمٍ ‏.‏

sunnah.com