Abu Hurairah reported,

The Messenger of Allah ﷺ said, "If the owner of livestock does not pay what is due on them, they will be set upon him on the Day of Resurrection and will trample his face with their hooves."Some people have said, concerning a man who owns camels and fears that charity will become due on them, so he sells them for other camels like them, or for sheep, or for cattle, or for dirhams, fleeing from the charity by a single day as a legal trick, that there is no blame upon him. Yet the same person says that if he pays the charity on his camels a day or six days before the year is complete, it counts as valid for him.

Bukhari 6958

Sahih

وقال رسول الله ﷺ إذا ما رب النعم لم يعط حقها تسلط عليه يوم القيامة فتخبط وجهه بأخفافها وقال بعض الناس في رجل له إبل فخاف أن تجب عليه الصدقة فباعها بإبل مثلها أو بغنم أو ببقر أو بدراهم فرارا من الصدقة بيوم احتيالا فلا بأس عليه وهو يقول إن زكى إبله قبل أن يحول الحول بيوم أو بستة جازت عنه

البخاري 6958صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Trickery
Chapter
Zakat and that which is gathered should not be separated, nor should that which is separated be combined, for fear of the charity
Numbering
Darussalam 6958
Bukhari 6958