From Egyptian Secrets of Albertus Magnus, Joseph H. Peterson edition:
When Milk is Stolen by Witchcraft.
Wash the outside of the milk pails which you use for milkĀing with essence of Tonquin bean. Repeat this several times while milking the cows, and the witches' butter and cheese will have a bad odor, such as is frequently observed.
The grimoire Egyptian Secrets of Albertus Magnus lists this spell.