To my knowledge, this is not present in the classical, normative Twelver Shi'i hadith collections.
Of course, this doesn't prove whether he said this or not, or whether the statement contains truth or not; it simply means it is not in these books and doesn't have a chain of narrators.
However it is commonly accepted particularly among people who have mystical inclinations ('irfan, Sufism).
In any case, the status of Imam 'Ali is lofty whether or not he said this!