Laylat al-Qadr and its timing
2 – The best of its nights is Laylat al-Qadr, because the Prophet (peace and blessings of Allaah be upon him) said: “Whoever prays at night during Laylat al-Qadr {and manages to “catch” it} out of faith and the hope of reward, all his previous sins will be forgiven.”
3 – According to the most correct opinion, it is the twenty-seventh night of Ramadaan. Most of the ahaadeeth state this, such as the hadeeth of Zurr ibn Hubaysh, who said: “I heard Ubayy ibn Ka’b saying – and it was said to him that ‘Abd-Allaah ibn Mas’ood said: ‘Whoever follows the Sunnah will ‘catch’ Laylat al-Qadr!’ – Ubayy (may Allaah be pleased with him) said: ‘May Allaah have mercy on him, he did not want people to take it for granted and only stay up to pray on one night. By the One besides Whom there is no other god, it is in Ramadaan – he was swearing without a doubt – and by Allaah, I do know which night it is. It is the night in which the Messenger of Allaah (peace and blessings of Allaah be upon him) commanded us to pray (qiyaam). It is the night the morning of which is the twenty seventh, and the sign of it is that the sun rises on that morning white and without rays.’”
In another report, this was attributed to the Prophet (peace and blessings of Allaah be upon him). (Reported by Muslim and others).