It was narrated from Jabir that:
when the Messenger of Allah stood on top of As-Safa, he recited the Takbir three times and said: La ilaha illallah, Wahdahu la sharika lah, lahul-mulku wa lahul-hamdu, yuhyi wa yumitu, wa huwaala kulli shayin qadir (There is none worthy of worship except Allah alone with no partner or associate, His is the dominion and to Him be praise, He gives life and death, and He has power over all things). He did three times, and supplicated, and did the same a top Al-Marwah.