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.'"
أنه رأى فيما يرى النائم كأنه مر برهط من اليهود فقال: من أنتم؟ قالوا: نحن اليهود، قال: إنكم أنتم القوم، لولا أنكم تزعمون أن عزيرا ابن الله! فقالت اليهود: وأنتم القوم لولا أنكم تقولون ما شاء الله وشاء محمد! ثم مر برهط من النصارى فقال: من أنتم؟ قالوا: نحن النصارى فقال: إنكم أنتم القوم لولا أنكم تقولون المسيح ابن الله! قالوا: وإنكم أنتم القوم، لولا أنكم تقولون: ما شاء الله وشاء محمد! فلما أصبح أخبر بها من أخبر، ثم أتى النبي ﷺ فأخبره فقال: هل أخبرت بها أحدا؟ قال: نعم، فلما صلوا خطبهم، فحمد الله وأثنى عليه ثم قال: إن طفيلا رأى رؤيا فأخبر بها من أخبر منكم، وإنكم كنتم تقولون كلمة كان يمنعني الحياء منكم أن أنهاكم عنها قال: لا تقولوا ما شاء الله وما شاء محمد.
Ahmad (20649) narrated it, and this is his wording, and Ibn Majah (2118 - duplicated) also narrated it, both of them by way of Abdul-Malik bin Umayr, from Rabi bin Harash, from Tufayl bin Sakhbara, who mentioned it. Ibn Majah's wording is abridged. Its chain of transmission is sahih. There is disagreement over it regarding Abdul-Malik bin Umayr, but this version is the preserved one, and the discussion of it is set out at length in the Book of Iman.