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.
ibnmajah:2118Hishām b. ʿAmmār > Sufyān b. ʿUyaynah > ʿAbd al-Malik b. ʿUmayr > Ribʿī b. Ḥirāsh > Ḥudhayfah b. al-Yamān

a Muslim man saw in a dream that he met a man from among the People of the Book, who said: "What good people you would be if only you were not committing Shirk. For you say: 'What Allah wills and Muhammad wills."' He mentioned that to the Prophet ﷺ and he said: "By Allah, I am aware of that. Say: 'What Allah wills then what Muhammad wills."'Another chain from Tufail bin Sakhbarah, the brother of 'Aishah by her mother, from the Prophet ﷺ, with similar wording.  

ابن ماجة:٢١١٨حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ عَنْ رِبْعِيِّ بْنِ حِرَاشٍ عَنْ حُذَيْفَةَ بْنِ الْيَمَانِ

أَنَّ رَجُلاً مِنَ الْمُسْلِمِينَ رَأَى فِي النَّوْمِ أَنَّهُ لَقِيَ رَجُلاً مِنْ أَهْلِ الْكِتَابِ فَقَالَ نِعْمَ الْقَوْمُ أَنْتُمْ لَوْلاَ أَنَّكُمْ تُشْرِكُونَ تَقُولُونَ مَا شَاءَ اللَّهُ وَشَاءَ مُحَمَّدٌ وَذَكَرَ ذَلِكَ لِلنَّبِيِّ ﷺ فَقَالَ أَمَا وَاللَّهِ إِنْ كُنْتُ لأَعْرِفُهَا لَكُمْ قُولُوا مَا شَاءَ اللَّهُ ثُمَّ شَاءَ مُحَمَّدٌ حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الْمَلِكِ بْنِ أَبِي الشَّوَارِبِ حَدَّثَنَا أَبُو عَوَانَةَ عَنْ عَبْدِ الْمَلِكِ عَنْ رِبْعِيِّ بْنِ حِرَاشٍ عَنِ الطُّفَيْلِ بْنِ سَخْبَرَةَ أَخِي عَائِشَةَ لأُمِّهَا عَنِ النَّبِيِّ ﷺ بِنَحْوِهِ