Saint Joseph's (4-3) led by two after Miles made 1 of 2 free throws with 11.7 seconds left. DeAndre Bembry blocked Will Cummings' floater off the backboard with 5 seconds left. Temple (4-3) got the rebound, but Quenton DeCosey came up short on a driving attempt at the buzzer.
The Hawks had an 11-point lead on Bembry's free throws with 5:26 left, but Temple went a 10-2 run and pulled within 55-52 on DeCosey's dunk with 2:01 left.
Bembry made another pair of free throws to push the lead back to five before the Owls closed to 57-56 on Josh Brown's putback with 30 seconds left. Bembry finished with 11 points and seven rebounds.
DeCosey led the Owls with 22 points and Cummings added 13.