Hazrat Ibn Sabit says that Ibrahim, who is the Khalil (friend) of Allah, performed the sacrifice behind the valley.