The Messenger of Allah ﷺ went out one night, so I sent Barirah after him to see where he had gone. She said that he made his way toward Baqi al-Gharqad, where he stood at the nearest part of the cemetery, then raised his hands, then turned back. Barirah returned and informed me of this.When morning came, I asked him, "Messenger of Allah, where did you go out to last night?"He replied, "I was sent to the people of al-Baqi to pray for them."
حدثنا قتيبة بن سعيد قال حدثنا عبد العزيز بن محمد عن علقمة بن أبي علقمة عن أمه
خرج رسول الله ﷺ ذات ليلة فأرسلت بريرة في أثره لتنظر أين ذهب قالت فسلك نحو بقيع الغرقد فوقف في أدنى البقيع ثم رفع يديه ثم انصرف فرجعت إلي بريرة فأخبرتني فلما أصبحت سألته فقلت يا رسول الله أين خرجت الليلة قال بعثت إلى أهل البقيع لأصلي عليهم
Its isnad is sahih. Alqama bin Abu Alqama is trustworthy, and his hadith is found among the group of major hadith compilers. His mother's name was Marjana, and she was a freedwoman of Ayesha, as was her son. She is also considered trustworthy.The hadith was narrated by Nasai (4/91, no. 2037) and Malik (1/242, no. 55), both in the chapters on funerals.