Shaykh Muhammad Salih al-Ja’fari notes:
I heard Sidna Shaykh Abd al-Ghani say, “Mawlana Shaykh Salih wrote the qasida ‘al-Ja’fariyyu lahu fi hubbikum ‘amalun’ and in it he mentioned Mawlana al-Imam Hasan and Mawlana al-Imam al-Husayn. When Mawlana Shaykh Salih had gone to sleep, he saw his grandfather, Sayyidina al-Imam ‘Ali (may Allah ennoble his countenance and be well pleased with him) who said to him: “My son Salih, you mentioned my children but did not mention me?”. Upon hearing this, Mawlana Shaykh Salih woke up immediately and wrote some verses as an addition to the qasida.”
أُذْكُرْ عَلِيًّا إِذَا مَا جَاءَ مُبْتَدِراً * أَهْلَ العَدَاوَةِ فِي بَدْرٍ بِلَا مَهَلِ
وَ السَّيْفُ يَلْمَعِ فِي يُمْنَاهُ ذُو خَطَرٍ * أَرْدَي الأَعَادِي أُهَيْلَ الرُّمْحِ وَ الأَسَلِ
لَهُ زَئِيرٌ كَمِثْلِ الأَسْدِ فِي أَجَمٍ * يُرْدِي الأَعَادِي بِوَهْمِ الرُّعْبِ وَ الوَجَلِ 1
Mention ‘Ali when he came rushing * at the people of enmity at Badr, without any delay
And the sword gleamed in his right hand, menacingly * Killing the enemies, the holders of spears and spikes
He has a roar like a lion in the jungle * It takes down enemies with the misgivings of fear and dismay
Sidna Shaykh Abd al-Ghani said if you recite this qasida regularly and frequently, you will see with ease, Mawlana al-Imam ‘Ali (may Allah ennoble his countenance and be well pleased with him). This qasida can be considered an ‘invitation’ towards Mawlana al-Imam ‘Ali (may Allah ennoble his countenance and be well pleased with him).
Translation: here