Ali bin al-Madini (may Allah have mercy on him) says that Hammad (may Allah have mercy on him) erred in this hadith, and the correct one is the hadith of Ubaydullah (may Allah have mercy on him), meaning 'from Nafi'', and the hadith of al-Zuhri (may Allah have mercy on him) 'from Salim'.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 1798