بُلُوغُ الْمَرَامِ
Bulugh al-Maram 512
The Book of Prayer
وَذَكَرَ اَلشَّافِعِيُّ عَنْ عَلِيٍّ - رضى الله عنه - مِثْلَهُ دُونَ آخِرِهِ [1] .
ash-Shafi'i reported a similar Hadith without its end through 'Ali bin Abu Talib (RA).
Sunnah.com reference: Book 2, Hadith 442