Al-Adab Al-Mufrad, Book 12, Hadith 254 (English)

Abu Hurayra said, "The Prophet, may Allah bless him and grant him peace, went out to a group of his Companions who were laughing and talking. He said, 'By the One in whose hand my soul is, if you knew what I knew, you would laugh little and weep much.' Then he left and the people were weeping. Then Allah Almighty revealed to him, 'Muhammad! Why did you make My slaves despair?' The Prophet, may Allah bless him and grant him peace, said, "Give good news, guide people and draw near to one another.'"

حَدَّثَنَا مُوسَى، قَالَ‏:‏ حَدَّثَنَا الرَّبِيعُ بْنُ مُسْلِمٍ، قَالَ‏:‏ حَدَّثَنَا مُحَمَّدُ بْنُ زِيَادٍ، عَنْ أَبِي هُرَيْرَةَ قَالَ‏:‏ خَرَجَ النَّبِيُّ صلى الله عليه وسلم عَلَى رَهْطٍ مِنْ أَصْحَابِهِ يَضْحَكُونَ وَيَتَحَدَّثُونَ، فَقَالَ‏:‏ وَالَّذِي نَفْسِي بِيَدِهِ، لَوْ تَعْلَمُونَ مَا أَعْلَمُ لَضَحِكْتُمْ قَلِيلاً، وَلَبَكَيْتُمْ كَثِيرًا، ثُمَّ انْصَرَفَ وَأَبْكَى الْقَوْمَ، وَأَوْحَى اللَّهُ عَزَّ وَجَلَّ إِلَيْهِ‏:‏ يَا مُحَمَّدُ، لِمَ تُقَنِّطُ عِبَادِي‏؟‏، فَرَجَعَ النَّبِيُّ صلى الله عليه وسلم فَقَالَ‏:‏ أَبْشِرُوا، وَسَدِّدُوا، وَقَارِبُوا‏.‏

sunnah.com