Ibn Majah was born in Qazwin, the modern-day Iranian province of Qazvin, in 824 CE. Majah was the nickname of his father, and not that of his grandfather. Al-Dhahabi mentioned following of Ibn Majah's works: