Mishkat al-Masabih 98, 99
Abu Huraira said:
God’s messenger came out to us when we were arguing about God’s decree. He was angry and his face became so red that it looked as if pomegranate seeds had been burst open on his cheeks. He then said, “Is this what you were commanded to do, or was it for this purpose that I was sent to you? Your predecessors perished only when they argued about this matter. I adjure you, I adjure you, not to argue about it.” 

Tirmidhi transmitted it, and Ibn Majah transmitted something similar from ‘Amr b. Shu'aib from his father from his grandfather.
وَعَن أبي هُرَيْرَة قَالَ: خَرَجَ عَلَيْنَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَنَحْنُ نَتَنَازَعُ فِي الْقَدَرِ فَغَضِبَ حَتَّى احْمَرَّ وَجْهُهُ حَتَّى كَأَنَّمَا فُقِئَ فِي وجنتيه الرُّمَّانِ فَقَالَ أَبِهَذَا: «أُمِرْتُمْ أَمْ بِهَذَا أُرْسِلْتُ إِلَيْكُمْ إِنَّمَا هَلَكَ مَنْ كَانَ قَبْلُكُمْ حِينَ تنازعوا فِي هَذَا الْأَمر عزمت عَلَيْكُم أَلا تتنازعوا فِيهِ» . رَوَاهُ التِّرْمِذِيُّ وَقَالَ حَدِيثٌ غَرِيبٌ لَا نَعْرِفُهُ إِلَّا مِنْ هَذَا الْوَجْهِ من حَدِيث صَالح المري وَله غرائب يتفرد بهَا لَا يُتَابع عَلَيْهَا قلت: لَكِن يشْهد لَهُ الَّذِي بعده
وروى ابْن مَاجَه فِي الْقدر نَحْوَهُ عَنْ عَمْرٍو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ