The period of Guru Har Rai (1630–61) was a relatively peaceful one. He withdrew from Kiratpur and moved farther back into the Shiwalik Hills, settling with a small retinue at Sirmur. From there he occasionally emerged onto the plains of the Punjab to visit and preach to the Sikhs. In this regard he was well served by several masands, who brought him news about the Sikhs and offerings of money to pay the expenses of the Panth.
The period of peace did not last, however. Guru Har Rai faced the same problems with the Mughals as Guru Arjan had. Aurangzeb, the successful contender for the Mughal throne, defeated his elder brother Dara Shikoh and established himself in Delhi. He then sent a message to Har Rai requiring him to deliver his son Ram Rai as a hostage for Har Rai’s reputed support of Dara Shikoh. Aurangzeb evidently wished to educate the future Guru in Mughal ways and to convert him into a supporter of the Mughal throne. In an episode that illustrated the success of this quest, Aurangzeb once asked Ram Rai to explain an apparently demeaning line in the Adi Granth, which claimed that earthenware pots were mitti musalaman ki, or formed from deceased Muslim bodies. Ram Rai replied that the words had been miscopied. The original text should have been mitti beiman ki, the dust that is formed from the bodies of faithless people. When this answer was reported to Har Rai, he declared his intention never to see Ram Rai again. Because he had committed the serious crime of altering the words of Guru Nanak, Ram Rai could never be the Guru, and the position passed instead to his younger brother, Hari Krishen, who inherited the title when he was only five years old.