Ali bin al-Hakam narrated from a man of the people of Kufah that Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) came to them while we were burying a dead person, and a cloth had been spread over the grave. So he (Sayyiduna Ali, may Allah be pleased with him) pulled the cloth off the grave and said: This is done only for women.
It is in the sense of a munqati' (broken-chain) report, because the man from the people of Kufah is unknown.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 7051