[And it is He who made you successors upon the earth.] Muhammad (Ibn Abi Zamaneen) said: The meaning is: inhabitants of the earth, where you succeed one another; the singular is 'khalifah'.
[And raised some of you above others in degrees] regarding the merits He has bestowed upon you in [this world] [that He may test you] meaning: to examine you [in what He has given you] meaning: what He has bestowed upon you.
[Indeed, your Lord is swift in punishment] when the time comes in which He wills to punish them, at the time they denied His messengers, [and indeed, He is Forgiving, Merciful] to whoever repents from their polytheism and believes in their Lord.