Jesus demonstrated this double level of giving. He gave himself for us, and in doing so, he was giving a gift of obedience to the Father. It is motivated by love for God first. You know the grace of our Lord Jesus Christ, that though he was rich, yet for your sakes he became poor, so that you through his poverty might become rich. There are different kinds of obedience.
Someone can obey because they have no choice.
Another can obey to get in good favor with their superior. And yet another can obey simply because of love for the one they are obeying. Jesus obeyed the Father because He loved the Father. With that motivation, Jesus is the model for our giving. Giving will involve obedience to the biblical principles for giving which God gives in His Word.