Muhammad
Muhammad's life is traditionally defined into two periods: pre-hijra (emigration) in Mecca (from 570 to 622), and post-hijra in Medina (from 622 until 632). Muhammad is said to have had thirteen wives in total (although two have ambiguous accounts, Rayhana bint Zayd and Maria al-Qibtiyya, as wife or concubine.) Eleven of the thirteen marriages occurred after the migration to Medina.
Muhammad Shah
Muhammad Shah married his fourth (and last) wife, Safiya Sultan Begum later on. Badshah Begum died on 14 December 1789 Muhammad Shah had three sons and three daughters. In 1748 when Ahmad Shah Abdali attacked and deposed Muhammad Shah, his son Anwer Ali escaped to his grand aunt Princess Jahanara Begum & hid in a place in Arrah, Bihar which was infested with bears which was later named as Bhaluhipur.