The Prophet ﷺ said, "The most beloved words to Allah are four, and it does not matter with which of them you begin: Subhan Allah, Alhamdulillah, La ilaha illa Allah, and Allahu Akbar."
عن النبي ﷺ: أحب الكلام إلى الله أربع، لا يضرك بأيهن بدأت: سبحان الله، والحمد لله، ولا إله إلا الله، والله أكبر.
Ahmad narrated it (16412) from Waki, and Nasai in Amal al-Yawm wal-Layla (842) through Ibn Fudayl, both of them from Amash, from Abu Salih, from one of the companions of the Prophet ﷺ, and he related it. The wording given is that of Nasai, and Ahmad's version does not include, "It will not harm you which of them you begin with." The companion who was not named is Abu Hurairah, and Ibn Hajar likewise stated this in Tahdhib (12/394).