and looking out from the slopes of ered wethrin with his last sight he beheld far off the peaks of thangorodrim , mightiest of the towers of middle-earth , and knew with the foreknowledge of death that no power of the noldor would ever overthrow them ; but he cursed the name of morgoth thrice , and laid it upon his sons to hold to their oath , and to avenge their father .