Verily, We made the mountains to glorify Our Praises with him (Dawood (David)) in the Ashi (i.e. after the mid-day till sunset) and Ishraq (i.e. after the sunrise till mid-day)
Indeed, We subjected the mountains (those with ego) to fulfill their functions (taspih) in the evening and when the Sun rises to him.
Sayyed Abbas Sadr-Ameli
Verily We subjected the mountains to give glory with him at the evening and the sunrise,
Al-muntakhab fi tafsir al-Qur'an al-Karim
We subdued for him the mountains to play the echo to his praises and join him in hymning and ascribing the praises to Allah at night fall and at the break of the day