It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "One of the prophets besieged the people of a town until he feared that he would conquer it, but (meanwhile) he feared that the sun would set. So he said: 'O sun! You are bound by the command of Allah, and I too am a servant bound by the command of Allah. I adjure you to stay still for me for a part of the day.' He (peace and blessings be upon him) said: 'So Allah Almighty held back the sun for him until he conquered that town. And it was their custom that when they obtained spoils of war, they would present them as an offering (in thanksgiving), and then fire from the sky would come and consume (burn) it. So when they gathered those spoils and laid them down, the fire did not come to consume them. They said: O Prophet of Allah! What is the matter that our offerings are not being accepted? He said: There has been theft from the spoils of war among you. They said: O Prophet of Allah! How will we know who has the stolen goods? He said: You are twelve tribes, so let the chief of each tribe pledge allegiance to me. The narrator said: Then the chief of each tribe pledged allegiance to him, and the hand of that prophet (peace and blessings be upon him) stuck to the hand of one of those chiefs. So he said: Your tribe has the stolen goods. That chief asked: How can I know who has it? So he took the pledge from the men of that tribe one by one. This was done until his hand stuck to the hand of one of the men among them. He said to him: Do you have the stolen goods? He said: Yes. He asked: What is it? He said: It is the head of a bull made of gold; I liked it, so I stole it. Then he brought it and placed it with the spoils of war, and then the fire came and consumed it.'"
Ka'b (may Allah have mercy on him), who was with Sayyiduna Abu Hurayrah (may Allah be pleased with him), said: "Allah and His Messenger have spoken the truth. O Abu Hurayrah! It is like this in the Book of Allah too. Did the Prophet of Allah (peace and blessings be upon him) tell you which prophet it was?" He replied: "No." Ka'b (may Allah have mercy on him) said: "It was Yusha' bin Nun, the companion of Sayyiduna Musa (peace be upon him). Did he (peace and blessings be upon him) tell you which town it was?" He said: "No." Ka'b (may Allah have mercy on him) said: "It was the town of Jericho (Ariha)."
No one narrated this hadith from Ubaydullah bin Umar (may Allah have mercy on him) except Mubarak bin Fadalah (may Allah have mercy on him).
Hadith Referenceالمعجم الأوسط / باب الميم / 6600
Hadith Takhrij«أخرجه الحاكم فى «المستدرك» برقم: 2634، وأحمد فى «مسنده» برقم: 8431، والطحاوي فى «شرح مشكل الآثار» برقم: 1069، 1070»