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.
ahmad-zuhd:1621ʿAbdullāh > Aḥmad b. Ibrāhīm al-Dawraqī > Ḥajjāj > Shuʿbah

[Machine] Yunus ibn Ubaid, when he didn't find anyone and wasn't busy, would say, "Glory be to Allah and praise be to Him, glory be to Allah and praise be to Him."  

الزهد لأحمد:١٦٢١حَدَّثَنَا عَبْدُ اللَّهِ حَدَّثَنَا أَحْمَدُ بْنُ إِبْرَاهِيمَ الدَّوْرَقِيُّ حَدَّثَنَا حَجَّاجٌ قَالَ سَمِعْتُ شُعْبَةَ يَقُولُ قَالَ

يُونُسُ بْنُ عُبَيْدٍ كَانَ الْحَسَنُ إِذَا لَمْ يَجِدْ أَحَدًا وَلَمْ يَكُنْ مَشْغُولًا يَقُولُ «سُبْحَانَ اللَّهِ وَبِحَمْدِهِ سُبْحَانَ اللَّهِ وَبِحَمْدِهِ»