It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that he sat down in a place and asked those present: "Do you know what this piece of wood is?" The people said that they did not know. So he said: "When the Messenger of Allah (peace and blessings be upon him) stood for the prayer, he would hold it in his blessed hand, then turn towards us and say: 'Straighten up, and make your rows even.' Then he would hold it in his left hand and say the same again: 'Straighten up, and make your rows even.'" Then, when the old building of the mosque was demolished (for its expansion), that piece of wood went missing. Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) had it searched for, and it was found that the people of Banu Amr bin Awf had taken it and set it up in their own mosque. So Sayyiduna Umar (may Allah be pleased with him) had it removed from there and brought back (to the Prophet's Mosque).
Imam Ibn Hibban recorded this hadith in his "Sahih", and Imam Ibn Khuzaymah also recorded it from Sayyiduna Anas bin Malik (may Allah be pleased with him) in these words: "When Sayyiduna Umar (may Allah be pleased with him) expanded the Prophet's Mosque, the people neglected the piece of wood that was in the direction of the qiblah. Then Sayyiduna Anas (may Allah be pleased with him) asked: Do you know why this piece of wood was placed here? The people said: No. So he said: When the Messenger of Allah (peace and blessings be upon him) stood for the prayer" (and the rest is the same as above). However, the story of the demolition of the mosque and the recovery of the piece of wood is not mentioned in this narration of Ibn Khuzaymah.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب افتتاح الصلاة / 1212