Sunan Abi Dawud, Book 2, Hadith 280 (Abu Dawud 670)

This tradition has also ben transmitted by Anas through a different chain of transmitters. This version goes:

when the Messenger of Allah (ﷺ) stood for prayer, he took it (the stick) in his right hand and turning (to the right side) said; keep straight and straighten your rows. He then took it in his left hand and said; keep straight and straighten your rows.