Sunan an-Nasa'i, Book 35b, Hadith 62 (In-Book)

'Amr bin Dinar said: "I bear witness that I heard Ibn 'Umar asking about Al-Khibr (the agreement to Al-Mukhabarah) and he said: 'We did not see anything wrong with that, until Ibn Khadij told us earlier that he heard the Messenger of Allah forbidding Al-Khibr.'" Hammad bin Zaid was in accord with the two of them.

أَخْبَرَنَا عَبْدُ الرَّحْمَنِ بْنُ خَالِدٍ، قَالَ حَدَّثَنَا حَجَّاجٌ، قَالَ قَالَ ابْنُ جُرَيْجٍ سَمِعْتُ عَمْرَو بْنَ دِينَارٍ، يَقُولُ أَشْهَدُ لَسَمِعْتُ ابْنَ عُمَرَ وَهُوَ يُسْأَلُ عَنِ الْخِبْرِ، فَيَقُولُ مَا كُنَّا نَرَى بِذَلِكَ بَأْسًا حَتَّى أَخْبَرَنَا عَامَ الأَوَّلِ ابْنُ خَدِيجٍ أَنَّهُ سَمِعَ النَّبِيَّ صلى الله عليه وسلم نَهَى عَنِ الْخِبْرِ‏.‏‏ وَافَقَهُمَا حَمَّادُ بْنُ زَيْدٍ‏.‏‏

sunnah.com