حَدَّثَنَا عَبْد اللَّهِ، حَدَّثَنِي إِسْحَاقُ بْنُ إِسْمَاعِيلَ، حَدَّثَنَا قَبِيصَةُ، حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ الْأَعْلَى، عَنْ أَبِي عَبْدِ الرَّحْمَنِ، عَنْ عَلِيٍّ
رَضِيَ اللَّهُ عَنْهُ قَالَ أُرَاهُ رَفَعَهُ قَالَ: مَنْ كَذَبَ فِي حُلْمِهِ كُلِّفَ عَقْدَ شَعِيرَةٍ يَوْمَ الْقِيَامَةِ
I think he attributed it to the Prophet (sallallahu alayhi wa sallam) “Whoever tells a lie about his dream will be ordered to tie a grain of barley on the Day of Resurrection.”