Abu Hazim رحمہ اللہ reported: When Hasan عليه السلام was on his deathbed he said to his brother Imam Hussain عليه السلام
ادفنوني عند أبي- يعني النبي ص- إلا أن تخافوا الدماء. فإن خفتم الدماء فلا تهريقوا في دما. ادفنوني عند مقابر المسلمين.
Bury me near my grandfather Mohammad ﷺ on a condition if there's no bloodshed, and if you think that there will be a bloodshed upon this them bury me in the general graveyard where other muslims are buried.
When the soul of Hassan عليه السلام departed, the Hussain عليه السلام and his allies pulled up their weapons, then Saydna Abu Huraira رضیﷲ عنه told them, I swear by allah and I remind you of your brother's (al Hasan) will that people will not spare you until there will be bloodshed in between you, hence he co-operated with him all along and returned back and reverted from his stance, then people buried him in the graveyard of al Baqi.
Saydna Abu Huraira رضیﷲ عنه said:
أرأيتم لو جيء بابن موسى ليدفن مع أبيه فمنع أكانوا قد ظلموه؟
Tell me, Is this not Zulm? if the son of Prophet Moses was denied to be buried near the grave of his father, people replied to him and said yes it will be a Zulm, then Abu Huraira رضیﷲ عنه said:
فهذا ابن نبي الله قد جيء به ليدفن مع أبيه.
This was the son of Mohammad Mustafa ﷺ who desired to be buried near the grave of Mohammad ﷺ.
[al Tabqat al Kubra 1/340 #299]
Abu Hazim رحمہ اللہ said: I was present during the death of Hasan bin Ali رضیﷲ عنهما.
[al Mustadrak ala Sahihayn lil Hakim 157/3 #4799]
Urwah bin Zubair رحمہ اللہ said:
When the death of al Hasan عليه السلام came then he said:
ادفنوني عند قبر رسول الله صلى الله عليه وسلم إلا أن تخافوا أن يكون في ذلك شر، فإن خفتم الشر فادفنوني عند أمي .
Bury me near the grave of Mohammad ﷺ if there's no problem and if there will be an issue or problem then bury me near the grave of my Mother Sayyidah Fatima, Hasan passed away. When people decided to bury him then Marwan stopped them and said he will not be buried near the grave of Mohammad ﷺ, he will be buried in Usman hush kokab, therefore The tribe of Hashim and Tribe of Umayyah gathered around and started fighting and took up weapons.
Then Abu Huraira رضیﷲ عنه said to Marwan,
يا مروان أتمنع الحسن أن يدفن في هذا الموضع؟ وقد سمعت رسول الله صلى الله عليه وسلم [يقول له ولأخيه حسين: هما سيدا شباب أهل الجنة
O Marwan! Do you dare to stop Hasan عليه السلام to be buried near the grave of Mohammad ﷺ, I Heard heard about him (al Hasan) and his brother (Hussain) that they will be the leaders of youth in Jannah.
Marwan replied: Leave it! If you and Abu Saeed al Khudri haven't memorized this hadith then it would have wasted, you have accepted the Islam during the incident of Khaybar,
Abu Huraira said: You said the truth, I accepted Islam during Khaybar but I have been with Mohammad ﷺ continuously, I used to asked questions, I followed him to the extent that I give attention whatever questions were asked to Rasool ﷺ and I knew everyone who loved Mohammad ﷺ and who is loved by Mohammad ﷺ and Whom did Rasool ﷺ hate, who's near to Rasool ﷺ and who's far, who obey Mohammad ﷺ and who rejected his teachings, for whom Rasool ﷺ prayed for and to whom Rasoolallah ﷺ cursed, I know everyone.
When Sayyidah Ayesha saw weapons and men like this he feared that there will be bloodshed hence, She said: this is my house, I won't allow anyone to be buried in my house, therefore Mohammad bin Ali (Ibn Hanfiyah) said to his brother al Hussain عليه السلام,
يا أخي إنه لو أوصى أن يدفن لدفناه أو نموت قبل ذلك!!! ولكنه قد استثنى فقال: [إلا أن تخافوا الشر فأي شر أشد مما ترى؟
O brother! if Hasan had willed that he will only be buried near the Prophet ﷺ then we would have buried him there for sure or we would have died doing so but he placed a condition that if there's a problem burying me near the Mohammad ﷺ then bury me near my mother Fatima رضیﷲ عنها hence if you see, this is the problem and fear of bloodshed which your brother Hasan was talking about.
At last Imam al Hasan عليه السلام was buried next to his mother Sayyidah Fatima رضیﷲ عنها in al Baqi graveyard.
[al Ansab al Ashraaf lil balazari 3/60 #71 classified as Hasan]
Translated from حماد بن سعيد العلوي