Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:699ʿAbdullāh b. al-Walīd And ʾAbū Aḥmad al-Zubayrī > Sufyān > ʿAbd al-Aʿlá > Abū ʿAbd al-Raḥman > ʿAlī b. Abū Ṭālib > Sufyān Lā Aʿlamuh Ilā Qad Rafaʿah

ʿWhoever tells a lie about seeing me in his dream will be ordered on the Day of resurrection to tie a grain of barley.” Abu Ahmad said: I think it is from the Prophet ﷺ.  

أحمد:٦٩٩حَدَّثَنَا عَبْدُ اللهِ بْنُ الْوَلِيدِ وَأَبُو أَحْمَدَ الزُّبَيْرِيُّ قَالا حَدَّثَنَا سُفْيَانُ عَنْ عَبْدِ الْأَعْلَى عَنْ أَبِي عَبْدِ الرَّحْمَنِ عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ قَالَ

سُفْيَانُ لَا أَعْلَمُهُ إِلا قَدْ رَفَعَهُ قَالَ مَنْ كَذَبَ فِي حُلْمِهِ كُلِّفَ يَوْمَ الْقِيَامَةِ عَقْدَ شَعِيرَةٍ قَالَ أَبُو أَحْمَدَ قَالَ أُرَاهُ عَنِ النَّبِيِّ ﷺ  


See similar narrations below:

Collected by Tirmidhī
tirmidhi:2281Maḥmūd b. Ghaylān > Abū Aḥmad al-Zubayrī > Sufyān > ʿAbd al-Aʿlá > Abū ʿAbd al-Raḥman al-Sulamī > ʿAlī

" From the Prophet ﷺ, who said: "Whoever lies about his dream, he will be required to knot barely kernels on the Day of Judgement."  

الترمذي:٢٢٨١حَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ حَدَّثَنَا أَبُو أَحْمَدَ الزُّبَيْرِيُّ حَدَّثَنَا سُفْيَانُ عَنْ عَبْدِ الأَعْلَى عَنْ أَبِي عَبْدِ الرَّحْمَنِ السُّلَمِيِّ عَنْ عَلِيٍّ قَالَ أُرَاهُ

عَنِ النَّبِيِّ ﷺ قَالَ مَنْ كَذَبَ فِي حُلْمِهِ كُلِّفَ يَوْمَ الْقِيَامَةِ عَقْدَ شَعِيرَةٍ