Abdul Waahid bin Aadam (rahimahullah) mentions that the night Imaam Bukhaari (rahimahullah) passed away, he saw the following dream, “I saw Rasulullah (sallallahu ‘alaihi wasallam) standing in a certain place with a group of the Sahaabah (radhiyallahu ‘anhum). I greeted him with salaam, and he replied to my salaam. I then enquired, ‘What are you waiting for, O Rasul of Allah (sallallahu ‘alaihi wasallam)?’ Rasulullah (sallallahu ‘alaihi wasallam) replied, ‘I am waiting for Muhammed bin Ismaa’eel Bukhaari.”
At that time, Abdul Waahid (rahimahullah) did not have knowledge of the demise of Imaam Bukhaari (rahimahullah). Hence, he mentions, “A few days after seeing the dream, I received the news that Imaam Bukhaari (rahimahullah) had passed away. When I enquired regarding the time of his demise, I found that he had passed away at the exact time when I had seen Rasulullah (sallallahu ‘alaihi wasallam) in my dream waiting to receive him.”
(Siyar A’laamin Nubalaa 12/468)