Al-Adab Al-Mufrad, Book 33, Hadith 30 (In-Book) ⓘ
Ibn 'Abbas said, "A man said, to the Prophet, 'Whatever Allah wills and you will.' He said, 'You have put an equal with Allah. It is what Allah alone wills.'"
حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ: حَدَّثَنَا سُفْيَانُ، عَنِ الأَجْلَحِ، عَنْ يَزِيدَ، عَنِ ابْنِ عَبَّاسٍ: قَالَ رَجُلٌ لِلنَّبِيِّ صلى الله عليه وسلم: مَا شَاءَ اللَّهُ وَشِئْتَ، قَالَ: جَعَلْتَ لِلَّهِ نِدًّا، مَا شَاءَ اللَّهُ وَحْدَهُ.
also referenced under: Hadith 783 (Reference) & Book 33, Hadith 783 (English)