I have read the (whole) bible several times through, but most of this has been using the New International Version (NIV). So probably every time I have read Jeremiah 7v22 before, I'd have read these words:
For when I brought your forefathers out of Egypt and spoke to them, I did not just give them commands about burnt offerings and sacrifices,  but I gave them this command: Obey me, and I will be your God and you will be my people. Walk in all the ways I command you, that it may go well with you.However, I read that verse in the Revised Standard Version (RSV) today and it says:
For in the day that I brought them out of the land of Egypt, I did not speak to your fathers or command them concerning burnt offerings and sacrifices.  But this thing I commanded them, saying, Hearken unto my voice, and I will be your God, and ye shall be my people; and walk ye in all the way that I command you, that it may be well with you.What? The apparent meaning is totally different! The NIV translation implies that God gave the Israelites the command to obey Him AND instructions about sacrifices, while the RSV clearly states that God did NOT give instructions about sacrifices, but only gave the command to listen and obey ('hearken').
So I had a look at several other translations (NASB, NKJV, ESB, NLT, ASV,... isn't the internet really useful sometimes?). Almost all of them agree with the RSV; God did not give instructions or commands about sacrifices ('in the day [that they came] out of Egypt').
I know that it is a joke that 'NIV' stands for 'Nearly Infallible Version' but I had always been lead to believe that it was a good translation.
Anyway, all this by means of introduction...
While all the translations (except NIV) say that God did not give instructions about sacrifice 'in the day', it seems to me (from context) that the meaning of the prophecy of Jeremiah here is that God never gave any instructions about sacrifice to the Israelites - because God doesn't want sacrifice! (see also 1 Samuel 15v22, Psalm 40v6, Psalm 51v16, Hosea 6v6).
But if God doesn't want sacrifice and He never gave instructions or commands about sacrifice, then who on earth wrote all the stuff in Exodus, Leviticus, Numbers & Deutoronomy?!