Qazwini tells that the earth was swinging in all directions, until God created an angel to bear it on his shoulders and steady it with his hands.
As Qazwini relates, the earth's motion was chaotic before God intervened by creating a divine being to hold it firm on its axis and maintain balance.