I think it is from the Prophet ﷺ who said, "Whoever lies about a dream he saw will be tasked on the Day of Resurrection with tying a knot in a barley grain."
حدثنا محمود بن غيلان حدثنا أبو أحمد الزبيري حدثنا سفيان عن عبد الأعلى عن أبي عبد الرحمن السلمي
أراه عن النبي ﷺ قال من كذب في حلمه كلف يوم القيامة عقد شعيرة