He was one of the companions and horsemen of the Prophet ﷺ. He said, "I heard the Messenger of Allah ﷺ say, 'A true vision is from Allah, and a disturbing dream is from Satan. So when one of you has a dream that he dislikes, let him spit to his left and seek refuge in Allah from it, and it will not harm him.'"
حدثنا يحيى بن بكير حدثنا الليث عن عقيل عن ابن شهاب عن أبي سلمة أن
وكان من أصحاب النبي ﷺ وفرسانه قال سمعت رسول الله ﷺ يقول الرؤيا من الله والحلم من الشيطان فإذا حلم أحدكم الحلم يكرهه فليبصق عن يساره وليستعذ بالله منه فلن يضره