Question: What date did the battle for Smolensk end?
About the article "Operation Barbarossa", section "Phase 2: Battle for Smolensk (3 July – 5 August 1941)".

Candidate passages:
In the 12th century, the autonomous grand duchy of Smolensk experienced its heyday, taking up a large part of the Smolensk region.
Tatar-Mongol hordes did not reach Smolensk, but he admits 1274 vassal of the Golden Horde.
In the 14th century Smolensk Prince Ivan with Lithuanians got rid of the Tatar yoke.
As a result, in the Smolensk land in 1340 invades Moscow-Ryazan-Tatar army.
Smolensk princes fluctuate between Lithuania and Moscow.
In 1348, Smolensk Knights crossed swords with the Crusaders at the Battle of Strėva.
In 1368 and 1370 years.
Smolensk ratification participated in campaigns Olgerda to Moscow, but the intervention of the Russian Orthodox Church made the princes of Smolensk to take pro-Moscow stance.
Smolyan shoulder-to- shoulder with the Muscovites fought in the Battle of Kulikovo.
In 1395, Vytautas the first time storm takes Smolensk and Bryansk plants to the throne Prince Roman.
In 1399, Smolensk regiments together with Lithuanians attacked the Tatars of the Vorskla River.
In July 1404 the Lithuanian prince Vytautas captured Smolensk and put an end to its independence.
In 1410 Smolensk regiments together with Lithuanians are involved in a battle with the German knights.
During the battle vedroshskoy in 1500 in Smolensk Moscow's troops defeated the Lithuanians.
In 1514, Smolensk and later other lands, went to Muscovy.
In 1610, at the Battle of Smolensk the land was under Klushino, resulting in the Polish troops opened the way to Moscow.
After the liberation of Moscow from the Poles, the king's son Vladislav did not leave attempts to occupy the throne in 1617, he chose Smolensk base for their march on Moscow.
After the Time of Troubles, according Deulino truce in 1618, Smolensk land was transferred to the Commonwealth.
Smolensk gentry began to take shape.
In the Smolensk War (1632-1634) Russia was not able to regain Smolensk land.
In the 16th and 17th centuries, Smolensk was one of the most important economic and military centers of the Grand Princedom of Moscow.
It was also a major commercial center, and home industry production reached high levels.
Construction of the Smolensk fortress wall was an important event in the history of Russia.
Smolensk Oblast was formed in September 1937 from the central and western districts of Western Oblast as the result of a reorganization of the latter oblast.
The new oblast exceeded present-day Smolensk Oblast in both population and area. 
The Battle of the Vikhra River (, ) took place on 29 April 1386 on the Vikhra River, tributary of the Sozh River, near Mstislavl between the Grand Duchy of Lithuania and the Principality of Smolensk.
Lithuanians achieved a decisive victory and Smolensk was forced to accept being a vassal of Lithuania.
Andrei of Polotsk fought with his younger half-brother Jogaila for the throne of the Grand Duchy of Lithuania.
Andrei allied with the Livonian Order and Prince Svyatoslav II of Smolensk, who wanted to reconquer the Principality of Mstislav.
In February 1386, when Jogaila and his allies celebrated his wedding to Jadwiga of Poland and coronation as Polish king in Kraków, the Order invaded Lithuania almost reaching Vilnius.
In March, the army of Smolensk besieged Vitebsk and Orsha, but could not take them.
Svyatoslav devastated many lands on the Lithuanian border and besieged Mstislavl, which was defended by Karigaila Olgerdovich.
Upon hearing the news of the invasion, Jogaila sent a great army under the command of his brother Skirgaila.
The army also included Kaributas, Lengvenis, and Vytautas.
Mstislavl withstood ten days of siege before the Lithuanian army reached it and engaged the Smolensk army.
The result of the battle was a complete defeat of the Smolensk troops and the deaths of Svyatoslav and his nephew Ivan.
Two of Svyatoslav's sons, Gleb Svyatoslavich and Yuri Svyatoslavich, were seriously wounded and taken prisoners.
Skirgaila's army approached Smolensk, but did not lay a siege.
Yuri, who according to the Bychowiec Chronicle was married to a niece of Skirgaila and Jogaila, was installed as the Prince of Smolensk and a vassal to Lithuania.
Gleb Svyatoslavich was taken as a hostage to Lithuania.
Eventually, Gleb returned to Smolensk and challenged Yuri for the throne.
That provided Grand Duke Vytautas with an opportunity to seize Smolensk in 1395. 
On August 14, 1812, the three marshals Murat, Davout and Ney crossed the Dnieper River on quickly constructed pontoon bridges.
The plan was to race toward the city of Smolensk, taking it without a fight.
Napoleon saw Smolensk as a vital supply and replenishment base from where he would march to the north to attack the rear of the Russian main forces under Barclay de Tolly.
The town had also symbolic, religious importance for the Russian side.
Unfortunately for the French, conflicting orders and a breakdown in communication had already led Bagration to disobey orders and instead of marching west, he occupied Smolensk to the south.
By August 16, French forces found the city heavily garrisoned by Bagration's troops.
He got further reinforced with the arrival of de Tolly's army.
Napoleon however assumed the Russians would fight outside the city to avoid the destruction of historical monuments, which did not happen.
The fight for Smolensk started on August 16, 1812 with Napoleon's forces of three corps capturing parts of the town's suburbs but being repelled soon after.
Continuous artillery shelling set the town, which consisted of mostly wooden buildings, ablaze but the French didn't manage to get past the suburbs and to the walls as they lacked ladders and other equipment.
Inflicting heavy losses on the attackers, the Russian garrison was able to hold its positions.
However the wide spread fire forced Bagration and de Tolly to abandon burning Smolensk on August 18, 1805.
The battle ended inconclusive with the Russian armies retreating and Napoleon conquering but as quickly leaving what was left of the city as it was of no use anymore. 
Although spared the Mongol armies in 1240, Smolensk paid tribute to the Golden Horde, gradually becoming a pawn in the long struggle between Lithuania and the Grand Duchy of Moscow.
The last sovereign monarch of Smolensk was Yury of Smolensk; during his reign the city was taken by Vytautas the Great of Lithuania on three occasions: in 1395, 1404, and 1408.
After the city's incorporation into the Grand Duchy of Lithuania, some of Smolensk's boyars (e.g., the Sapiehas) moved to Vilnius; descendants of the ruling princes (e.g., the Tatishchevs, Kropotkins, Mussorgskys, Vyazemskys) fled to Moscow.
With tens of thousands of people living there, Smolensk was probably the largest city in 15th-century Lithuania.
Three Smolensk regiments proved decisive during the Battle of Grunwald against the Teutonic Knights.
It was a severe blow to Lithuania when the city was taken by Vasily III of Russia in 1514.
To commemorate this event, the Tsar founded the Novodevichy Convent in Moscow and dedicated it to the icon of Our Lady of Smolensk.
In order to repel future Polish–Lithuanian attacks, Boris Godunov made it his priority to heavily fortify the city.
The stone kremlin constructed in 1597–1602 is the largest in Russia.
It features thick walls and numerous watchtowers.
Heavy fortifications did not prevent the fortress from being taken by the Polish–Lithuanian Commonwealth in 1611 after a long twenty-month siege, during the Time of Troubles and Dimitriads.
Weakened Muscovy temporarily ceded Smolensk land to the Commonwealth in the Truce of Deulino and for the next forty-three years it was the seat of Smolensk Voivodeship.
To recapture the city, the Tsardom of Russia launched the so-called "Smolensk War" against the Commonwealth in 1632.
After a defeat at the hands of king Wladislaw IV, the city remained in Polish–Lithuanian hands.
In 1632, the Uniate bishop Lew Kreuza built his apartments in Smolensk; they were later converted into the Orthodox Church of Saint Barbara.
The hostilities resumed in 1654 when the Commonwealth was being affected by the Khmelnytsky Uprising and the Swedish invasion.
After another siege, on September 23, 1654, Smolensk was recaptured by Russia.
In the 1667 Truce of Andrusovo, the Polish–Lithuanian Commonwealth finally renounced its claims to Smolensk. 
The First Battle of Smolensk was the first major battle during Operation Barbarossa in World War II that significantly delayed the advance of Hitler's Wehrmacht in the USSR.
It took place in the region around the city of Smolensk between July 10 and September 10, 1941, i.e., it raged for two full months about 400 km west of Moscow.
At that point the Wehrmacht had advanced 500 km into the USSR without major difficulties in the mere 18 days that had elapsed since the initial invasion of June 22, 1941.
The Wehrmacht fielded Army Group Centre's 2nd Panzer Group and the 3rd Panzer Group and the Red Army fielded the Western Front, the Soviet Reserve Front, the Soviet Central Front, and the Soviet Bryansk Front.
Ultimately, the Soviet 16th, 19th and the 20th Armies were encircled and destroyed just to the south of Smolensk, though significant numbers from the 19th and 20th Army managed to escape the pocket.
Albeit a huge temporary success for Hitler, the losses in terms of men and materiel incurred by the Wehrmacht during this drawn-out battle were enormous and—together with the 2-month delay in the march towards Moscow—proved decisive for the Wehrmacht's defeat by the Red Army at the end of the Battle of Moscow three months later in December 1941.