It is narrated from Sayyiduna Ali (may Allah be pleased with him) - the narrator says: I think he attributed it to the Prophet (peace and blessings be upon him) - that he said: "Whoever lies about his dream will be made, on the Day of Resurrection, to tie a knot in a grain of barley."
Imam Ahmad (may Allah have mercy on him) narrated it from Abu Ahmad al-Zubayri (may Allah have mercy on him) and Abdullah bin al-Walid (may Allah have mercy on him), from Sufyan (may Allah have mercy on him).
Abd bin Humayd (may Allah have mercy on him) also narrated it from Abu Nu'aym (may Allah have mercy on him), from Isra'il (may Allah have mercy on him).
Likewise Ishaq bin Rahwayh (may Allah have mercy on him) narrated it from Abu Nu'aym (may Allah have mercy on him), and in his version Sufyan (may Allah have mercy on him) said: I think he narrated it from the Prophet (peace and blessings be upon him).
And Imam al-Tirmidhi (may Allah have mercy on him) narrated it through Qutaybah (may Allah have mercy on him) from Abu Awanah (may Allah have mercy on him), and also through Mahmud bin Ghaylan (may Allah have mercy on him) from Abu Ahmad al-Zubayri (may Allah have mercy on him), from Sufyan (may Allah have mercy on him), from Abd al-A'la (may Allah have mercy on him).
Related hadith on this topic