Tafsir of 22:24 Ma'arif al-Qur'an
وَهُدُوٓا۟ إِلَى ٱلطَّيِّبِ مِنَ ٱلْقَوْلِ وَهُدُوٓا۟ إِلَىٰ صِرَٰطِ ٱلْحَمِيدِ ﴿٢٤﴾
وَهُدُوا إِلَى الطَّيِّبِ مِنَ الْقَوْلِ (And guided they were to the good word (of faith) - 22:24) Sayyidna Ibn ` Abbas ؓ has said that this refers to the Kalimah tayyibah لا إله إلا اللہ . Some others say that it means Qur'an. (Qurtubi) As a matter of fact it includes all these things in its meaning.
Source: Ma'arif al-Qur'an — Mufti Muhammad Shafi. Licence: Maktaba-e-Darul-Uloom; confirm