It is a wrong translation. All the Prophets are infallible and no Prophet committed any type of sin. Some acts from the prophets are not accepted by some people and called by some as sinful acts but it is in fact never sinful acts according to Allah.
Wassalam.