The dragon fears Jesus - Jesus is his Creator and Lord and Master. Rahab in Psalm 89:10 is satan the prideful rebellious traitor.
Rahab ( satan the dragon ) is destined for the lake of fire (eternally).