Imam Mahdi and Night of Qadr
«عَنْ مُحَمَّدِ بْنِ عِيسَى بْنِ عُبَيْدِ بِإِسْنَادِهِ عَنِ الصَّالِحِينَ(ع) قَالَ: وَ كَرِّرْ فِي لَيْلَةِ ثَلَاثٍ وَ عِشْرِينَ مِنْ شَهْرِ رَمَضَانَ قَائِماً وَ قَاعِداً وَ عَلَى كُلِّ حَالٍ وَ الشَّهْرَ كُلَّهُ وَ كَيْفَ أَمْكَنَكَ وَ مَتَى حَضَرَكَ فِي دَهْرِكَ تَقُولُ بَعْدَ تَمْجِيدِ اللَّهِ تَعَالَى وَ الصَّلَاةِ عَلَى النَّبِيِّ وَ آلِهِ اللَّهُمَّ كُنْ لِوَلِيِّكَ الْقَائِمِ بِأَمْرِكَ الْحُجَّةِ مُحَمَّدِ بْنِ الْحَسَنِ الْمَهْدِيِّ عَلَيْهِ وَ عَلَى آبَائِهِ أَفْضَلُ الصَّلَاةِ وَ السَّلَامِ فِي هَذِهِ السَّاعَةِ وَ فِي كُلِّ سَاعَةٍ وَلِيّاً وَ حَافِظاً وَ قَائِداً وَ نَاصِراً وَ دَلِيلًا...»
Muhammad ibn 'Isa has narrated through the chain of his narrators that Imam al-Bāqir and Imam al-Ṣadiq said,
"You should repeat this prayer during the twenty-third night of the month of Ramaḍan, while in prostration, standing, sitting and in all conditions and during the whole month and however you can, and whenever you remember in your lifetime. After you praise the almighty Allah, and after sending Salawāt upon the Prophet, you should say,
«اللّهُمَّ كُنْ لِوَلِيِّكَ الْحُجَّةِ بْنِ الْحَسَنِ
“O’ Allah! Be for Your deputy, al-Ḥujjah bin al-Ḥassan (al-Mahdi),
صَلَواتُكَ عَلَيْهِ وَعَلى آبائِهِ
May Your blessings be upon him and his forefathers,
في هذِهِ السّاعَةِ وَفي كُلِّ ساعَةٍ
Now and at all times,
وَلِيّاً وَ حافِظاً وَ قائِداً و َناصِراً وَ دَليلاً وَ عَيْناً
A master and protector and guide and helper and proof and guard,
حَتّى تُسْكِنَهُ أَرْضَكَ طَوْعاً
Until he resides peacefully on Your earth,
وَ تُمَتِّعَهُ فيها طَويلا»
And let him enjoy (his rule on the Earth) for a long time.”
Source: (Tahdhīb al-Aḥkām, by Sheikh al-Ṭūsī, vol. 3, p. 103)
Same Hadith with a bit of different wording is found in al-Kāfī as listed below:
«مُحَمَّدُ بْنُ عِيسَى بِإِسْنَادِهِ عَنِ الصَّالِحِينَ ع قَالَ: كَرِّرْ فِي لَيْلَةِ ثَلَاثٍ وَ عِشْرِينَ مِنْ شَهْرِ رَمَضَانَ هَذَا الدُّعَاءَ سَاجِداً وَ قَائِماً وَ قَاعِداً وَ عَلَى كُلِّ حَالٍ وَ فِي الشَّهْرِ كُلِّهِ وَ كَيْفَ أَمْكَنَكَ وَ مَتَى حَضَرَكَ مِنْ دَهْرِكَ تَقُولُ بَعْدَ تَمْجِيدِهِ تَعَالَى وَ الصَّلَاةِ عَلَى نَبِيِّهِ ص اللَّهُمَّ كُنْ لِوَلِيِّكَ مُحَمَّدِ بْنِ الْحَسَنِ الْمَهْدِيِّ فِي هَذِهِ السَّاعَةِ وَ فِي كُلِّ سَاعَةٍ وَلِيّاً وَ حَافِظاً وَ قَائِداً وَ نَاصِراً وَ دَلِيلًا وَ عَيْناً حَتَّى تُسْكِنَهُ أَرْضَكَ طَوْعاً وَ تُمَتِّعَهُ فِيهَا طَوِيلًا.»
Muhammad ibn 'Isa has narrated through the chain of his narrators that the Imams have said,
"You should repeat this prayer during the twenty-third night of the month of Ramaḍān, while in prostration, standing, sitting and in all conditions and during the whole month and however you can, and whenever you remember in your lifetime. After you praise Allah, and after sending Salawāt upon the Prophet, you should say,
«اللّهُمَّ كُنْ لِوَلِيِّكَ الْحُجَّةِ بْنِ الْحَسَنِ...»
“O’ Allah! Be for Your deputy, al-Ḥujjah bin al-Ḥassan (al-Mahdi) …”
Source: (Al-Kāfi, vol. 4, P. 162, Hadith. 4)