If the digit in unit's place of number is 7 then the digit in the unit's place of its cube is

(...7)(...7) ends in 9

(.....9)( .... 7) ends in 3