“I saw the Prophet (ﷺ) on the Day of Sacrifice, at ‘Aqabah Pillar. He went to the interior of the valley and threw seven pebbles, saying Takbir with each pebble, then he departed.”

Another chain reports a similar hadith.
Sunan Ibn Majah Book 25, Hadith 150