Tufayl bin Sakhbara reported,

He saw in a dream that he passed by a group of Jews and asked, "Who are you?"They replied, "We are the Jews."He said, "You would be an excellent people, were it not that you claim Uzayr is the son of Allah."The Jews retorted, "And you would be an excellent people, were it not that you say, 'Whatever Allah wills and Muhammad wills.'"Then he passed by a group of Christians and asked, "Who are you?"They replied, "We are the Christians."He said, "You would be an excellent people, were it not that you say the Messiah is the son of Allah."They retorted, "And you would be an excellent people, were it not that you say, 'Whatever Allah wills and Muhammad wills.'"When he awoke, he told some people about the dream, then went to the Prophet ﷺ and informed him.The Prophet asked, "Have you told anyone about it?"He answered, "Yes."After they had prayed, the Prophet ﷺ addressed the people. He praised Allah and glorified Him, then said, "Tufayl has seen a dream which he has shared with some of you. You have been saying a phrase that shyness before you prevented me from forbidding. Do not say, 'Whatever Allah wills and whatever Muhammad wills.'"

Azami 11726

Sahih

عن طفيل بن سخبرة، أخي عائشة لأمها

أنه رأى فيما يرى النائم كأنه مر برهط من اليهود فقال: من أنتم؟ قالوا: نحن اليهود، قال: إنكم أنتم القوم، لولا أنكم تزعمون أن عزيرا ابن الله! فقالت اليهود: وأنتم القوم لولا أنكم تقولون ما شاء الله وشاء محمد! ثم مر برهط من النصارى فقال: من أنتم؟ قالوا: نحن النصارى فقال: إنكم أنتم القوم لولا أنكم تقولون المسيح ابن الله! قالوا: وإنكم أنتم القوم، لولا أنكم تقولون: ما شاء الله وشاء محمد! فلما أصبح أخبر بها من أخبر، ثم أتى النبي ﷺ فأخبره فقال: هل أخبرت بها أحدا؟ قال: نعم، فلما صلوا خطبهم، فحمد الله وأثنى عليه ثم قال: إن طفيلا رأى رؤيا فأخبر بها من أخبر منكم، وإنكم كنتم تقولون كلمة كان يمنعني الحياء منكم أن أنهاكم عنها قال: لا تقولوا ما شاء الله وما شاء محمد.

الأعظمي 11726صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Dreams and their interpretation
Chapter
Medicine
Section
Visions of the Companions which they related to the Prophet ﷺ
Numbering
Jami al-Kamil 11726 (2nd edition)
Azami 11726