Muwatta Malik, Book 20, Hadith 946 (In-Book)

Yahya related to me from Malik from Ayyub ibn Abi Tamima as- Sakhtayani from Said ibn Jubayr that Abdullah ibn Abbas said, "If someone forgets anything of the rituals or omits them intentionally, he must slaughter an animal." Ayyub added "I do not know if he said 'Omits' or 'forgets'." Malik said, "If it is a hady that has to be slaughtered it may only be done in Makka, but if it is a sacrifice, it may be slaughtered wherever the one who owes the sacrifice prefers."

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

sunnah.com

also referenced under: Book 20, Hadith 249 (USC-MSA)