What Is The Purpose For Creating The Human?

Allah swt created Adam pbuh as a Successor on His earth, this is a matter which is accepted by all the Divine religions. Also Allah swt [commanded] all of His angels to prostrate to Adam pbuh, and prostration is a sign of submission and compliance and obedience to the command of the one whom they prostrated to