Matthew 12:7

If only you had known the meaning of ‘I desire mercy, not sacrifice,’ you would not have condemned the innocent.

Note Hosea 6:6

BSB · Berean Standard Bible
But if ye had known what this meaneth, I will have mercy, and not sacrifice, ye would not have condemned the guiltless.
KJV · King James Version
But if you had known what this means, ‘I desire mercy, and not sacrifice,’ you wouldn’t have condemned the guiltless.
WEB · World English Bible
But if ye had known what this meaneth, I desire mercy, and not sacrifice, ye would not have condemned the guiltless.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

if
Matthew 9:13; Matthew 22:29; Acts 13:27
I will
That is, I desire, or require mercy, or acts of humanity, rather than sacrifice.
Isaiah 1:11–17; Hosea 6:6; Micah 6:6–8
condemned
Job 32:3; Psalm 94:21; Psalm 109:31; Proverbs 17:15; James 5:6