Luckily, he took it for granted that I had only just come upon the scene.
He was lucky that I only just arrived at the scene.