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

It was narrated that Ribi said;"the Messenger of Allah said: "The Messenger of Allah said: 'When you see the crescent then fast, and when you see it, then stop fasting. If it is too cloudy then complete Shaban as thirty days, unless you see the crescent before that, then fast Ramadan as thirty days, unless you see the new crescent before that."' Translation Not Available

Book Ref: Sunan An Nisai Book 22 Hadith 2128
Web Ref:  Sunan An Nisai Vol 3 Book 22 Hadith 2130