The Fifth son of Madalsa was promised to be a king and she gave her decision to leave her body within 12 years after the birth of that son. Read about Second part of Mata Madalsa's Story.
Read this post on mithsofhinduism.blogspot.com