In 1587 Firishta was serving as the captain of guards of King Murtaza Nizam Shah I when Prince Miran overthrew his father and claimed the throne of Ahmednagar. Prince Miran spared the life of his former friend, who then left for Bijapur to enter the service of King Ibrahim Adil II in 1589.[citation needed]