23
"The man": the disbeliever who adopted the way of ingratitude.
24
That is, "At that time he does not remember those other deities whom he used to invoke in good times; but he despairs of them all and turns only to Allah, Lord of the worlds." This is a clear proof of the fact that in the depths of his heart he has the feeling that all other deities are helpless, and the realization that Allah alone is the Possessor of all powers and authority, lies buried and hidden deep in his mind. "
25
That is, "He again forgets the bad times when abandoning all other deities he was invoking only Allah, the One."
26
That is, "He again starts serving others: he obeys them, prays to them and makes offerings before them."
27
That is, "He is not content with his own self having gone astray, but also leads others astray, telling them that the affliction which had befallen him, had been averted by the help of such and such a pious man or saint, or god and goddess." Thus, many other people also put their faith in these deities besides Allah, and are further misled as the ignorant and foolish people describe their experiences before them.
28
It should be noted that two kinds of the men are being contrasted here. First, those who turn to Allah when a calamity befalls them, but worship others than Allah normally. Second, those who have made it their permanent way of life to obey Allah and worship and serve Him, and their worshiping Him in solitude during the night is a proof of their sincerity. The first kind of the men have been called ignorant by Allah, even if they might have devoured whole libraries. And the second kind of the men have been called the learned, even if they might be illiterate. For the real supremely important thing is the knowledge of the Truth and man's action according to it, and on this depends his true success. Allah asks: How can these two be equal? How can they possibly follow the same way together in the world, and meet with the same end in the Hereafter?