It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "A ruler's being just among his subjects for a single day is more excellent than a worshipper's worship performed while living among his family for a hundred years or fifty years."
The narrator who doubted about this (the period of fifty or a hundred years) is Hushaym (may Allah have mercy on him).
Hadith Referenceالمطالب العالية بزوائد المسانيد الثمانية / كتاب الخلافة والإمارة / 2152
Hadith Gradingمحدثین:إسناده ضعيف جدًا
Hadith Takhrij«حکم الحدیث المطالب العالیہ محققاً تنسیق د. سعد بن ناصر بن عبد العزيز الشَّثري- مکتبہ شاملہ :إسناده ضعيف جدًا. » «انفرد به المصنف من هذا الطريق»