I think he said (these words) when the people were at the places of rest: No necklace of strings be left on the necks of the camels or the necklace kept unbroken. Imam Malik said: To my mind (this practice) of wearing necklace round the necks of camels or animals was because of the fact that they (wanted to save them) from the influence of the evil eye. (Using translation from Muslim 2115)
أَخْبَرَهُ أَنَّهُ كَانَ مَعَ رَسُولِ اللهِ ﷺ فِي بَعْضِ أَسْفَارِهِ فَأَرْسَلَ رَسُولُ اللهِ ﷺ رَسُولًا لَا يَبْقَيَنَّ فِي رَقَبَةِ بَعِيرٍ قِلَادَةً مِنْ وَتَرٍ إِلَّا قُطِعَتْ قَالَ مَالِكٌ «أَرَى ذَلِكَ مِنَ الْعَيْنِ»