It is narrated from Ibn Jurayj, he said: I said to Ata (may Allah have mercy on him): "And the compensation is obligatory, equivalent to the animal which he has killed, as judged by two just men among you (whether that compensation is from the cattle), to be brought as an offering to the Ka'bah, or as an expiation, to feed the needy." (Al-Ma'idah: 95) Ata (may Allah have mercy on him) said: Because he hunted that animal in the Haram and he also intends the House of Allah, so its expiation must also be given near the House of Allah.
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 881
Hadith Takhrijاسناده حسن اخرجه البيهقي: 1/ 180 ، 187 - وفى المعرفة السنن والآثار له، رقم : (3141)۔