Sahih al-Bukhari, Hadith 1571

Narrated `Imran: We performed Hajj-at-Tamattu` in the lifetime of Allah's Messenger and then the Qur'an was revealed (regarding Hajj-at-Tamattu`) and somebody said what he wished (regarding Hajj-at-Tamattu`) according his own opinion.

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا هَمَّامٌ، عَنْ قَتَادَةَ، قَالَ حَدَّثَنِي مُطَرِّفٌ، عَنْ عِمْرَانَ ـ رضى الله عنه ـ قَالَ تَمَتَّعْنَا عَلَى عَهْدِ رَسُولِ اللَّهِ صلى الله عليه وسلم فَنَزَلَ الْقُرْآنُ قَالَ رَجُلٌ بِرَأْيِهِ مَا شَاءَ‏.‏

sunnah.com