I speak something of this in this thread
I think Lucifer (the angel) was in control of the earth before homo sapiens. He seemed like a quite the brutish King in that “would not let captives go home”. But then he fell, and lost this reign of the earth on a physical level, but still reigns over it’s spiritual realm. This is when man was put here to subdue the earth and rule animals (Lucifer’s old job).
Satan is also the father of lies. So when he tempted Jesus about his reign, that could have been a lie. Or he might still have much influence over the land as he can control man through the spiritual realm of darkness. Perhaps Satan controlled that ruler of that land he pointed out? Or Satan believed it was his land and was wiling to give it away. As many times we think the money we have or the physical abilities or mental strengths we have are due to our doing and we ‘own’ it. All belongs to God, though we forget often and give things away to other because we believe at the time it is ours because it is in our physical possession.
This is why when giving to the poor, all glory belongs to God, He was the one that blessed us with the money that we do have. and He blessed us with it to give to the poor so that He might be glorified.