Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:1-498bQys b. By Ḥāzm
Request/Fix translation

  

السيوطي:١-٤٩٨b

"عن قيس بن أبي حازم قال: قَالَ بِلال لأَبى بَكْرٍ حِينَ تُوفِّى رَسُولُ اللهِ ﷺ : إِنْ كُنْتَ إِنَّمَا اشتَريْتَنِى لِنَفْسِكَ فَأَمسكنِى، وَإِنْ كُنْتَ إِنَّمَا اشْتَريْتَنِى لله فذَرْنِى وعَمِلى لله، فَبَكَى أَبُو بَكْرٍ وَقَالَ: إِنَّمَا أَعتَقْتُكَ للهِ، فَاذْهَب فَاعمَلْ للهِ".  

ابن سعد، [حل] أبى نعيم في الحلية

See similar narrations below:

Collected by Bukhārī, Ṭabarānī
bukhari:3755Ibn Numayr > Muḥammad b. ʿUbayd > Ismāʿīl > Qays > Bilāl

Bilal said to Abu Bakr, "If you have bought me for yourself then keep me (for yourself), but if you have bought me for Allah's Sake, then leave me for Allah's Work."  

البخاري:٣٧٥٥حَدَّثَنَا ابْنُ نُمَيْرٍ عَنْ مُحَمَّدِ بْنِ عُبَيْدٍ حَدَّثَنَا إِسْمَاعِيلُ عَنْ قَيْسٍ أَنَّ بِلاَلاً قَالَ

لأَبِي بَكْرٍ إِنْ كُنْتَ إِنَّمَا اشْتَرَيْتَنِي لِنَفْسِكَ فَأَمْسِكْنِي وَإِنْ كُنْتَ إِنَّمَا اشْتَرَيْتَنِي لِلَّهِ فَدَعْنِي وَعَمَلَ اللَّهِ  

tabarani:1010ʿAbdullāh b. Aḥmad b. Ḥanbal from my father > Abū Usāmah > Ismāʿīl b. Abū Khālid > Qays b. Abū Ḥāzim

[Machine] "Bilal, to Abu Bakr when the messenger of Allah ﷺ passed away, said: 'If you had bought me for yourself, then keep me, and if you had set me free for the sake of Allah, then leave me to work for Allah.'"  

الطبراني:١٠١٠حَدَّثَنَا عَبْدُ اللهِ بْنُ أَحْمَدَ بْنِ حَنْبَلٍ ثنا أَبِي ثنا أَبُو أُسَامَةَ عَنْ إِسْمَاعِيلَ بْنِ أَبِي خَالِدٍ عَنْ قَيْسِ بْنِ أَبِي حَازِمٍ قَالَ قَالَ

بِلَالٌ لِأَبِي بَكْرٍ حِينَ تُوُفِّيَ رَسُولُ اللهِ ﷺ وَؓ «إِنْ كُنْتَ اشْتَرَيْتَنِي لِنَفْسِكَ فَأَمْسِكْنِي وَإِنْ أَعْتَقْتَنِي لِلَّهِ فَذَرْنِي أَعْمَلْ لِلَّهِ ﷻ»