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.
quran:10:14

Then We made you successors in the land after them so that We may observe how you will do.  

Then We made you, O people of Mecca, successors (khalā’if is the plural of khalīfa) in the earth after them, that We might behold how you would behave, in it, and whether you would take heed from their example and believe in Our messengers.
القرآن:١٠:١٤

ثُمَّ جَعَلْنَاكُمْ خَلَائِفَ فِي الْأَرْضِ مِنْ بَعْدِهِمْ لِنَنْظُرَ كَيْفَ تَعْمَلُونَ  

{ثم جعلناكم} يا أهل مكة {خلائف} جمع خليفة {في الأرض من بعدهم لننظر كيف تعملون} فيها وهل تعتبرون بهم فتصدقوا رسلنا.