عَن الْمِقْدَاد بْنِ مَعْدِي كَرِبَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَا أَكَلَ أَحَدٌ طَعَامًا قَطُّ خَيْرًا مِنْ أَنْ يَأْكُلَ مِنْ عَمَلِ يَدَيْهِ وَإِنَّ نَبِيَّ اللَّهِ دَاوُدَ عَلَيْهِ السَّلَامُ كَانَ يَأْكُلُ مِنْ عمل يَدَيْهِ» . رَوَاهُ البُخَارِيّ
Translation

Rafi' b. Khadij reported God’s Messenger as saying, "The price paid for a dog is impure, the hire paid to a prostitute is impure, and the earnings of a cupper are impure.” Muslim transmitted it.