Some transitive verbs need 2 objects to complete the intended meaning. Both objects are accusative in these examples.
Arabic sentence
First object
Second object
جَعَلَ اللَّهُ الْأَرْضَ فِرَاشًا
الْأَرْضَ
فِرَاشًا
جَعَلَ اللَّهُ السَّمَاءَ بِنَاءً
السَّمَاءَ
بِنَاءً
حَسِبَ حَامِدٌ مَحْمُودًا عَالِمًا
مَحْمُودًا
عَالِمًا
Read the first example as: Allah made the earth a resting place.