حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ أَبِي سَلَمَةَ الْعُمَرِيُّ ، قَالَ : حَدَّثَنِي إِبْرَاهِيمُ ، عَنِ الزُّهْرِيِّ ، عَنْ سَالِمٍ ، عَنْ أَبِيهِ ، قَالَ : قَالَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - : إِذَا رَأَيْتُمُ الْهِلَالَ فَصُومُوا ، وَإِذَا رَأَيْتُمُوهُ فَأَفْطِرُوا ، فَإِنْ غُمَّ عَلَيْكُمْ فَاقْدُرُوا لَهُ ، قَالَ : قَالَ سَالِمٌ : كَانَ عَبْدُ اللهِ يَصُومُ قَبْلَ الْهِلَالِ بِيَوْمٍ إِذَا غُمَّ عَلَيْهِ .
It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "When you see the new moon (of Ramadan), fast, and when you see it (again), break the fast (for Eid). Then if it is hidden from you because the sky is cloudy, estimate it (according to the number of days)." Salim (may Allah have mercy on him) narrates that it was the habit of Sayyiduna Abdullah (may Allah be pleased with him) that when the sky was cloudy, he would fast one day before the new moon was sighted.