Singh from memory recited the current version of the Guru Granth Sahib while Bhai Mani Singh transcribed it. When Guru Sahib left Agra with Emperor Bahadur Shah for Nanded in 1707, Mata Sahib Devan and Bhai Mani Singh accompanied him. Afterwards Bhai Mani Singh escorted Mata Sahib Devan back to Delhi where she lived with Mata Sundri for the rest of her life. Service of Banda Singh Bahadur After Banda Singh Bahadurs execution in 1716 The Khalsa abandoned their homes and escaped to the jungles of the Punjab, mountains of Sivalik Hills and deserts of Rajputana. Role in Sikh history A scholar Bhai Mani Singh acted as scribe when Guru Gobind Singh Ji dictated Sri Guru Granth Sahib. Bhai Mani Sahib collected the Gurbani (Literally "Word of the Guru") of Guru Gobind Singh Ji and compiled it in the Guru Granth Sahib (Sikhs living guru). The writings included in the Dasam Granth were composed at different times by the Guru himself. He expanded the first of Bhai Gurdas's Vaars into a life of Guru Nanak which is called Gyan Ratnavali. Mani Singh wrote another work, the Bhagat Ratnawali (sometimes called Sikhan di Baghat Mala), an expansion of Bhai Gurdas's eleventh Vaar, which contains a list of famous Sikhs up to the time of Guru Har Gobind. In his capacity as a Granthi of Darbar Sahib at the Golden Temple, Bhai Mani Singh is also stated to have composed the Ardas (Supplication) in its current format; he also started the tradition of mentioning deeds of various Gursikhs with the supplication. Leadership at Harmandir Sahib Bhai Mani Singh who was under the presence of Guru Gobind Singh in 1690s had taken over the Harmandir Sahib at Amritsar in mid-1699 from Minas. After initiating the people of Majha to the Khalsa Panth Bhai Mani Singh came back to Anandpur Sahib. Bhai Mani Singh actively taught the reading of Gurbani and its philosophy to the Sikhs. According to some Hukamnamas, Bhai Mani Singh was heading the shrine in 1716. He spent the period of worst persecution in post 1716 at the village of Baganwala in Jhang district. In 1720, Mata Sunder Kaur learned of the trouble that was brewing between the Tat Khalsa (A sect of Khalsa who were strict followers of Guru Gobind Singh) and Bandai Khalsa (a sect of Khalsa who regarded Banda Singh Bahadur as the Guru) military factions of the