I don't think he did. John 2:15,16 says; "So after making a whip of ropes, he drove all those with the sheep and cattle out of the temple, and he poured out the coins of the money changers and overturned their tables. And he said to those selling the doves: “Take these things away from here! Stop making the house of my Father a house of commerce!”
To drive sheep and cattle, a whip would be very useful, or even necessary. I note there is no mention of Jesus whipping people, but he turned the moneychanger's tables over, and said to the dove sellers to remove them. No mention of his whipping either group. Certainly no mention of him cursing.