`Ikrimah, the freed slave of Ibn `Abbas, narrated that:
Ibn `Abbas said: “We were with the Messenger of Allah (ﷺ) when `Ali bin Abi Talib came to him, and he said: ‘May my father and mother be ransomed for you! This Qur’an has suddenly left my heart, and I do not find myself capable of it.’ So the Messenger of Allah (ﷺ) said to him: ‘O Abul-Hasan! Should I not teach you words that Allah shall benefit you with, and benefit whomever you teach, and they will make whatever you have learned in your chest firm?’ He said: ‘Of course, O Messenger of Allah (ﷺ), so teach me.’ He (ﷺ) said: ‘When it is the night of (before) Friday, then if you are able to stand in the last third of the night, then verily it is a witnessed hour, and supplication is answered in it. And my brother Ya`qub (as) did say to his sons: I shall seek forgiveness for you from my Lord. He said: “Until the night of Friday comes.” So if you are not able, then stand in the middle of it, and if you are not able then stand in the first of it. And pray four Rak`ah. Recite Fatihatul-Kitab (the Opening of the Book) and Surat Ya-Sin in the first Rak`ah, and Fatihatul-Kitab and Ha-Mim Ad-Dukhan in the second Rak`ah, and Fatihatul-Kitab and Alif Lam Mim Tanzil As-Sajdah in the third Rak`ah, and Fatihatul-Kitab and Tabarak Al-Mufassal in the fourth Rak`ah. So when you have finished with the Tasha-hud, then praise Allah and mention Allah’s greatness in an excellent manner, and send Salat upon me - and be excellent in it - and upon the rest of the Prophets. And seek forgiveness for the believing men and the believing women, and for your brothers who have preceded you in faith. Then...