Is it illegal to share a recipe from my previous job that I worked at?

My boss asked me for my old job drink recipe. Is it illegal if I share it. They’re both drink stores. Will I get punished?
Is it illegal to share a recipe from my previous job that I worked at?
Post Opinion