Sahih al-Bukhari Book 86, Hadith 74
Those people who used to buy foodstuff at random (without weighing or measuring it) were beaten in
the lifetime of Allah's Messenger (ﷺ) if they sold it at the very place where they had bought it, till they
carried it to their dwelling places.
Allah's Messenger (ﷺ) forbade Al-Wisal (fasting continuously for more than one day without taking any meals). A man from the Muslims said, "But you do Al-Wisal, O Allah's Messenger (ﷺ)!" Allah's Messenger (ﷺ) I said, "Who among you is similar to me? I sleep and my Lord makes me eat and drink." When the people refused to give up Al-Wisal, the Prophet (ﷺ) fasted along with them for one day, and did not break his fast but continued his fast for another day, and when they saw the crescent, the Prophet (ﷺ) said, "If the crescent had not appeared, I would have made you continue your fast (for a third day)," as if he wanted to punish them for they had refused to give up Al-Wisal.
Allah's Messenger (ﷺ) never took revenge for his own self in any matter presented to him till Allah's limits were exceeded, in which case he would take revenge for Allah's sake.