Since upholding justice applies to both speech and action, the meaning is that He, glory be to Him, bears witness while knowingly upholding justice, not injustice. This testimony encompasses both speech and action: it affirms that He alone deserves worship, to the exclusion of all others; that those who worship Him alone are successful and blessed; and that those who associate others with Him are misguided and wretched. Thus, when He bears witness while upholding justice—which entails rewarding those who worship Him alone with Paradise and requiting those who associate partners with Him with the Fire—this fully realizes and confirms what the testimony entails. His words, “upholding justice,” therefore draw attention to the recompense of those who affirm this testimony and those who deny it. And Allah knows best.
Section
As for the second analysis—that “upholding” is a circumstantial qualifier of what follows “but”—the meaning is: there is no god but Him, while He upholds justice. He alone deserves divinity, while upholding justice.
Our shaykh said: “This analysis is stronger, for it entails that the angels and those endowed with knowledge testify both that there is no god but Him and that He upholds justice.”
I say: What he means is that, if “upholding justice” is a circumstantial qualifier of the One to whom the testimony pertains, it functions like an attribute of Him. A circumstantial qualifier is, in meaning, an attribute of its subject. When testimony concerns the subject so qualified, both the subject and its qualification are attested. Thus, the angels and those endowed with knowledge testify that He upholds justice, just as they testify that there is no god but Him.
The first analysis does not entail this. For if the construction means, “Allah bears witness, while upholding justice, that there is no god but Him, and the angels and those endowed with knowledge bear witness that there is no god but Him,” then “upholding justice” is a circumstantial qualifier of the name Allah alone.
Moreover, including His upholding justice within what is attested is more emphatic than making it merely a circumstantial qualification of the act of bearing witness.