Sayyiduna Abu Muwayhibah, who was a freed slave of the Prophet (peace and blessings be upon him), says that once the Prophet (peace and blessings be upon him) received the command to pray for the people of Baqi’. So the Prophet (peace and blessings be upon him) prayed for them three times in one night. On the second night, the Prophet (peace and blessings be upon him) said to me: "Abu Muwayhibah, saddle my mount for me." Then the Prophet (peace and blessings be upon him) mounted, and I walked on foot until we reached Jannat al-Baqi’. Upon arrival, the Prophet (peace and blessings be upon him) dismounted, I held the rope of the mount, and the Prophet (peace and blessings be upon him) stood by their graves and said: "Congratulations to you for the blessings you are in, having been spared from the conditions of the people. Trials are descending like the dark portions of the night, coming one after another, and each subsequent one is harsher than the previous. So congratulations to you for the blessings you are in." After this, the Prophet (peace and blessings be upon him) returned and said: "I have been given the choice: either the keys to the conquests my Ummah will achieve after me and Paradise, or to meet my Lord." I said: "O Messenger of Allah! May my parents be sacrificed for you, please tell us about your preference." The Prophet (peace and blessings be upon him) said: "After me, my Ummah will do whatever Allah wills, so I have chosen to meet my Lord." Thus, seven or eight days after this incident, the Prophet (peace and blessings be upon him) passed away.
Hadith Referenceمسند احمد / مسند المكيين / 15996
Hadith Gradingحکم دارالسلام:إسناده ضعيف لجهالة عبيد بن جبير، والحكم بن فضيل مختلف فيه، ولقصة تخييره ﷺ بين الدنيا و بين ما عندالله أصل من حديث صحيح
Sayyiduna Abu Muwayhibah, who was a freed slave of the Prophet (peace and blessings be upon him), says that once the Prophet (peace and blessings be upon him) sent for me in the middle of the night and said: "Abu Muwayhibah, I have been commanded to seek forgiveness for the people of Baqi’, so come with me." So I went with him. When he stood among them, he said: "Peace be upon you, O people of the graves! May the state you are in be pleasant for you compared with the state the people are in. If only you knew what Allah has saved you from! Trials have come like portions of the dark night, one following another, and each later one is worse than the earlier." Then he turned to me and said: "Abu Muwayhibah, I have been given the keys to the treasures of the world and to live in it forever, followed by Paradise, and I have been given the choice between that and meeting my Lord and Paradise." I said: "May my father and mother be sacrificed for you, take the keys of the world and to live in it forever, followed by Paradise." He said: "No, by Allah, Abu Muwayhibah, I have chosen meeting my Lord and Paradise." Then he sought forgiveness for the people of Baqi’ and returned. The next morning, the Prophet (peace and blessings be upon him) began to suffer the illness in which Allah took him.
Hadith Referenceمسند احمد / مسند المكيين / 15997
Hadith Gradingحکم دارالسلام:حديث صحيح فى استغفاره لأهل البقيع واختياره لقاء ربه ، وهذا إسناد ضعيف لجهالة عبدالله بن عمر العبلى، وعبيد بن جبير