[Machine] Whoever observes the entire month of Ramadan, he will surely catch its Night of Power. So, I arrived at Medina and mentioned this to Ubayy, who said, "By the One in whose hand is my soul, I know which night it is that the Messenger of Allah ﷺ commanded us to observe." So, I asked him about it, and he said, "It is the twenty-seventh night." Abdullah said, "So, if the month is thirty days, we would observe three nights after it, and if it is twenty-nine days, we would observe two nights after it."
مَنْ قَامَ شَهْرَ رَمَضَانَ كُلَّهُ أَدْرَكَهَا قَالَ فَقَدِمْتُ الْمَدِينَةَ فَذَكَرْتُ ذَلِكَ لِأُبُيٍّ فَقَالَ «وَالَّذِي نَفْسِي بِيَدِهِ إِنِّي لَأَعْلَمُ أَيَّ لَيْلَةٍ هِي اللَّيْلَةُ الَّتِي أَمَرَنَا رَسُولُ اللهِ ﷺ بِقِيَامِهَا» قَالَ فَسَأَلْتُهُ عَنْهَا فَقَالَ «لَيْلَةُ سَبْعٍ وَعِشْرِينَ» قَالَ عَبْدَةُ «فَإِذَا كَانَ الشَّهْرُ ثَلَاثِينَ قُمْنَا بَعْدَهَا ثَلَاثًا وَإِذَا كَانَ تِسْعًا وَعِشْرِينَ قُمْنَا بَعْدَهَا لَيْلَتَيْنِ»