In those days King Aurangzeb sent a letter to Guru Har Rai Ji asking him to attent his court at Delhi.
Guru Har Rai Ji replied that his duty was to show the Divine Light of God to the people. He had no business with the kings. He had no business with the kings. He did not require any wealth or estate. So he should be exempted from such attendance.
King Aurangzeb was annoyed on hearing such a reply from Guru Har Rai Ji. He ordered his ministers to write an other letter asking the Guru to attend the court without further delay.
Receiving the second letter Guru Har Rai Ji decided to send his elder son Baba Ram Rai Ji. He knew that Baba Ram Rai was competent to satisfy Aurangzeb. At that time age of Ram Rai was merely 11 years. But he had recevived well and proper education and was owner of many spiritual powers. The Guru sent for him and advising him said, “dear son ! You have to attend the court of Aurangzeb. You have to go there without any fear. I will be always with you. Whatever Aurangzeb asks, you should reply correctly. You should not hide anything. Our religion is a clear as a crystal and as true as a steel. But you are advised that you should not show him any miracle; as miracle is the name of Divine wrath. There is not place of miracle in the house of Guru.”
Baba Ram Rai ageerd to go to Delhi. The Guru asked Bhai Tara and Bhai Guru to accompany him. Fifty well-equipped horse riders were also sent with him as his body-guards.
Baba Ram Rai reached Delhi via Ropar, Kharar, Gharuan, Shahbad, Thanesar and Panipat. Reaching there they stayed at Majnu Tilla and Aurangzeb was informed about their arrival.
After few days Aurangzeb called for Baba Ram Rai. His two associate bhai Tara and Bhai Gurudas also accompanied him. Aurangzeb was very impressed to see a divine glow on the face of Baba Ji. He asked him to sit on a very respectable place in the royal court. His two associates were also allowed to sit beside him. Then Aurangzeb ask him many questions on different topics and Baba g replied very wisely and confidently. Aurangzeb was astonished to hear such clear cut answers from boy of eleven years. He concluded that Baba Ram Rai was owner of divine powers so he could not be defeated through dialogue or discussion. He decided to change the topic. He asked Baba Ji to show miracles. Baba Ji was so impressed by the sweet talk of Aurangzeb that he forget the advice of his father. By giving quick and clever replies to the questions of Aurangzeb; he presumed himself a very wise man. He felt proud of his divine powers. He at once agreed to show miracles. He said very boldly, “I can show any type of miracle which you can imagine. So tell me what you want to see?” The historians describe these miracles in detail. He was asked to give life to a dead goat. When Baba Ji touched to goat with his stick the goat became alive and ran away from the court. Then he was asked to wear a poisonous dress. Baba ji worn it, but poison did not affect his body. Then Aurangzeb asked to tell him that what was happening in his royal palace. What was doing his queen. Baba Ram Rai described the actual situation and happenings of his palace in detail. Then Aurangzeb sent one courtier to his palace to verify his facts described by Baba Ji.
After verifying, the courtier came and told Aurangzeb that facts described by Baba Ji were true. Then Aurangzeb asked his servants to place one palanquin outside the Darbar Hall. When servants placed the palanquin outside the Darbar, Aurangzeb asked him to sit in the palanquin and it entered the Darbar flying in the air. Then it landed in front of Aurangzeb. Aurangzeb was bewildered to see such a miracle. After that Aurangzeb said, “Please tell what I was in my previous birth.” Baba Ji told without fear that he was wolf in his previous birth. On hearing this answer he felt some what confused. He thought to ask him to show impossible miracles. So he asked Baba Ji to bring fruits of heaven for him. Baba Ji at once placed one basket full of heavenly fruits in front of Aurangzeb. Aurangzeb tried to eat that fruits, But those were so hard that he could not eat. Baba Ji told that only those men could eat those fruits who had not spoken lie in their life. Aurangzeb felt ashamed. He asked his courtiers to eat those fruits but all felt abashed on their helplessness. Then Aurangzeb asked Baba Ji to eat those fruits. Baba Ji took the fruits and eat very easily. He gave those fruits to his companions and they also swallowed the fruits without any difficulty.
There was also sitting one Maulvi in the Darbar, he criticized that fruits did not belongs to heaven. Baba Ji heard the words of Maulvi. He stretched his one hand towards Maulvi and then pulled it back with a jerk. The tongue of the Malulvi came outside and he ran outside crying loudly.
In the Darbar there was also sitting one royal wrestler, whose name was Rustam. That wrestler was known as world champion. One courtier asked Baba Ji to wrestle with Rustam. Baba Ji at once asked one lean person sitting in the court to wrestle with Rustam. Rustam was so impressed by the miracles of Baba Ji that he refused to fight. But when Aurangzeb ordered he got up to wrestle with that weak and lean man. Rustam was so impressed by the miracles of baba Ji that he refused to fight. But when Aurangzeb ordered he got up to wrestle with that weak and lean man. Rustam was just preparing for the duel, when that weak man got hold of him and put him flat on the ground. Rustam was unable to get up. The courtiers were dumb-founded. Then Aurangzeb said that he wanted to have a glimpse of Holy Mecca. Baba Ji asked Aurangzeb to close his eyes. When he closed his eyes he saw the real mecca. On seeing the mecca Aurangzeb bowed before that in reverence. Then Aurangzeb said, “I have heard that Guru Nanak revolved Mecca. But let us see, can you revolve this Moti Masjid ?” When Baba Ji saw towards Moti Masjid it began to revolve. As the Moti Masjid was revolving clock wise, the Darbar bagan to rotate anti clockwise. The king and his courtiers feared that Doomsday had come. They began to cry loudly. They requested Baba Ji to stop the revolving of the Darbar And Moti masjid. But Baba Ji paid no heed towards them. At last king Aurangzeb requested with folding hands. Baba Ji stopped the rotation of the Darbar and Moti Masjid. All felt relieved. A dead silence prevailed in the Darbar. Aurangzeb and his courtiers bowed their heads before Baba Ji. He and his companions felt very happy. Baba Ji felt very proud of his miracle powers.
Aurangzeb was himself perplexed to see such miracles. But he was fully satisfied. He became a friend of Baba Ram Rai. He asked Baba Ram Rai to sit near him. Then he bestowed on him a robe of honour and presented precious gifts.