بسم الله الرحمن الرحيم
It is necessary that the words of oath are uttered verbally. The oath shall not take place merely by saying in the heart.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.