False connection. A rooster crows and the sun then rises therefore the crowing rooster CAUSES the sun to rise.
The Latin term is, "Post hoc, ergo propter hoc."
A formal fallacy.
Regards,