Which engine? Mine goes behind the engine to the left, along by the battery box then there's a clip by the transfer box. Realistically though just cable tie it up and it'll be fine
If you look at the 7 o'clock position on the rear/PTO cover of the transfer-box, there should be a tab under the bolt. There should be a clip on the tab to secure the speedo cable.