Benjamin Franklin claimed “Resistance to (or ‘rebellion against’) tyrants is obedience to God”, and attributed the sentence to one of the Seforim Chitzonim, “Maccabees”. But to the best of my knowledge, that book is not the source of the expression.
He did not cite chapter and verse, nor do I know which Bible translation he consumed. Perhaps he misunderstood/misremembered Matisyahu, 1 Maccabees 2:19-22, quoted saying:
“We will not obey the king’s words by turning aside from our religion left or right.”
And is the idea true anyhow? No. Resisting Rechav’am, for example, was motivated by several things, one of which was idolatry, as Chazal say. It can be true, but need not be. And as for revolutions, what about, say, the Communist Revolution?