The Ten Commandments are written in the indicative. Did you know that? There's a perfectly straightforward imperative mood in Hebrew. God could easily have said "You must not murder". But God didn't say that. He said "You will not murder." You won't. You're my special people. I've saved you. You won't lie, you won't murder, you won't covet. You won't. These things are not said in the (grammatical) mood of command. They are said in the mood of promise!
Now of course they carry commanding force. When a mother says to two screaming kids "There will be peace in this house", by golly there had better be peace. And when God says there will be peace, well there's a huge commanding force to that. But it's first and foremost a promise.
And because it's a promise, it becomes the most binding command.
"You will" is far stronger than "you must".
"You must" implies that you may not. "You must" puts you in the driving seat. To be sure it stands above you with a threatening tone. But even after "You must" is spoken the reality is that maybe you will and maybe you won't. The choice remains yours.
"You will" takes the choice out of your hands. "You will" does not even contemplate an alternative. "You will" binds you to the promise. It makes you a slave of grace. It casts you as a humble recipient of the word with nothing to do but walk in the service that is perfect freedom.
So now Jesus says this in Matthew 5:48 - and again, He could have used the imperative. Instead He spoke in the glorious future indicative:
You will be perfect as your heavenly Father is perfect.
What a command? Well, yes, subsequently. But first - what a promise!
.
REMINDER
"You must be perfect -- just as your Father in heaven is perfect" is our great invitation (although unresponded) to put on a new nature, i.e., Christ's divinity by being born again of the Spirit or the image of God still present and active in His perfect and transfigurative death on the cross (John 3: 14-15).
This is interesting cos I've been working on Romans 6v6-14 today, which includes v14 'For sin will not have dominion over you' which is a future indicative too. In general I think this whole chapter is massively informative for what you're talking about here. If there's a promise in the command (or a command in the promise?) then the only true obedience is the obedience of faith, and faith is always in what God has done and therefore will do for us in Christ - we 'count ourselves dead to sin in Christ' (v11), and any 'do not let sin reign ...' (v12) comes from that.