M40 (WNC 4) in Ursa MajorWinnecke 4
M-40 is not actually a deep sky object at all, rather is is a double star. This faint double star was found by Charles Messier when he was searching for a nebula which was - erroneously - reported by the 17th-century observer Johann Hevelius in this vicinity. As Messier had measured the position of these stars, he gave them a number in his catalog. This fact gives some suggestion on how this catalog was compiled: Messier collected positions while he was cataloging the star clusters and nebula, which could be taken for comets. M40 was apparently the last one he recorded when he was busy in checking the reports available to him in 1764.