When the Messenger of Allah ﷺ stood upon Safa, he would say "Allah is the greatest" three times, then say, "There is no god but Allah alone, with no partner. His is the dominion, His is the praise, and He has power over all things." He would do this three times, making supplication in between, and he would do the same upon Marwa.
و حدثني عن مالك عن جعفر بن محمد بن علي عن أبيه
أن رسول الله ﷺ كان إذا وقف على الصفا يكبر ثلاثا ويقول لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شيء قدير يصنع ذلك ثلاث مرات ويدعو ويصنع على المروة مثل ذلك