Married women shouldn’t visit their family often

I was told that when a woman gets married, she is unable to visit her family as much as she would love to and she has to take permission from her husband before visiting... my husband locked me out of the house because I visited my sister and overstayed. He said that I should focus on my marriage to him and he is my priority. For those who asked, my husband and I are Africans