The previous hadith is also narrated from Sayyiduna Ali (may Allah be pleased with him), its wording is the same but the chain of narration is different.