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.
bukhari:4742Ibrāhīm b. al-Ḥārith > Yaḥyá b. Abū Bukayr > Isrāʾīl > Abū Ḥaṣīn > Saʿīd b. Jubayr > Ibn ʿAbbās > And from al-Nās Man Yaʿbud Allāh > Ḥarf

Regarding the Verse: "And among men is he who worships Allah's as it were on the very edge." (22.11). A man used to come to Medina as if his wife brought a son and his mares produces offspring. He would say, "This religion (Islam) is good," but if his wife did not give birth to a child and his mares produced no offspring, he would say, "This religion is bad."  

البخاري:٤٧٤٢حَدَّثَنِي إِبْرَاهِيمُ بْنُ الْحَارِثِ حَدَّثَنَا يَحْيَى بْنُ أَبِي بُكَيْرٍ حَدَّثَنَا إِسْرَائِيلُ عَنْ أَبِي حَصِينٍ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ ؓ قَالَ

{وَمِنَ النَّاسِ مَنْ يَعْبُدُ اللَّهَ عَلَى حَرْفٍ} قَالَ كَانَ الرَّجُلُ يَقْدَمُ الْمَدِينَةَ فَإِنْ وَلَدَتِ امْرَأَتُهُ غُلاَمًا وَنُتِجَتْ خَيْلُهُ قَالَ هَذَا دِينٌ صَالِحٌ وَإِنْ لَمْ تَلِدِ امْرَأَتُهُ وَلَمْ تُنْتَجْ خَيْلُهُ قَالَ هَذَا دِينُ سُوءٍ