Along with Samarra, Karbala, Kadhimiya and Najaf, Kufa is one of five Iraqi cities that are of great importance to Shi'ite Muslims. The city was the final capital of the fourth Rashidun Caliph, Ali ibn Abi Talib, and was founded during 639 CE (17 Hijrah) by the second Rashidun Caliph, Umar ibn Al-Khattab. It is also related that Muslims after the conquest of Al-Madain were searching for a suitable place for habitation. Likewise, Salman and Hudhayfa bin al-Yamman were also looking for a place to reside. After choosing the land, they offered prayers there, thus marking the day of the foundation of Kufa.