To get to this post credit scene, you have to keep Hank alive and to be your friend, also Marcus to win the revolution, Connor to become a deviant and escape the CyberLife trap.