Sayyiduna Ali (may Allah be pleased with him) said: "I was with the Prophet (peace and blessings be upon him) when Sayyiduna Abu Bakr and Sayyiduna Umar (may Allah be pleased with them both) came, and the Messenger of Allah (peace and blessings be upon him) said: 'These two are the leaders of the mature men of the people of Paradise, of the earlier ones and the later ones, except for the Prophets and Messengers. O Ali, do not tell the two of them this.'"
Imam al-Sha'bi (may Allah have mercy on him) narrated from Sayyiduna Ali (peace be upon him) concerning the flogging of a woman and then her stoning, and Imam al-Bukhari (may Allah have mercy on him) recorded it in his "Sahih".
And this hadith which we have written here was narrated by Abdullah bin Hashim al-Tusi (may Allah have mercy on him) from Waki' bin al-Jarrah (may Allah have mercy on him), from Yunus (may Allah have mercy on him), from Imam al-Sha'bi (may Allah have mercy on him), from al-Harith (may Allah have mercy on him), from Sayyiduna Ali (may Allah be pleased with him); so it appears that Imam al-Sha'bi (may Allah have mercy on him) did not hear it directly from Sayyiduna Ali (may Allah be pleased with him). And Allah knows best.