The Hadi should be brought from within the Miqat Sunan Ibn Majah 3102

Arabic hadith text
حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ، حَدَّثَنَا يَحْيَى بْنُ يَمَانٍ، عَنْ سُفْيَانَ، عَنْ عُبَيْدِ اللَّهِ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ النَّبِيَّ ـ صلى الله عليه وسلمـ اشْتَرَى هَدْيَهُ مِنْ قُدَيْدٍ ‏.‏
Translation

It wasnarrated from Ibn ‘Umar that the Prophet (ﷺ) bought hissacrificial animal from Qudaid.*