Narrated Salim's father (i.e. `Abdullah): The Prophet said, "Whoever takes a piece of the land of others unjustly, he will sink down the seven earths on the Day of Resurrection." Sahih Bukhari 3:43:634
Narrated Abu Dharr: I was sitting behind the Messenger of Allah (ﷺ) who was riding a donkey while the sun was setting. He asked: Do you know where this sets ? I replied: Allah and his Apostle know best. He said: It sets in a spring of warm water (Hamiyah). Sunan Abu Dawud 4002 (Dar-us-Salam Ref)"
Allah drew the ends of the world near one another for my sake. And I have seen its eastern and western ends. And the dominion of my Ummah would reach those ends which have been drawn near me and I have been granted the red and the white treasure and I begged my Lord for my Ummah that it should not be destroyed because of famine, nor be dominated by an enemy who is not amongst them to take their lives and destroy them root and branch, and my Lord said: Muhammad, whenever I make a decision, there is none to change it. I grant you for your Ummah that it would not be destroyed by famine and it would not be dominated by an enemy who would not be amongst it and would take their lives and destroy them root and branch even if all the people from the different parts of the world join hands together (for this purpose), but it would be from amongst them, viz. your Ummah, that some people would kill the others or imprison the others.(http://quranx.com/Hadith/Muslim/USC-MSA/Book-41/Hadith-6904/)
these hadiths implies that the Earth is flat. Assuming, these statements are accurate, did people in the Prophets time or the Prophet, himself, believe that the earth was flat.