As it was narrated that the Prophet Ibrahim had built the Ka’bah, the last Messenger of God, Muhammed, first built a mosque when he migrated from Mekka to Medina, before building himself a house.
(251.)